-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hello world benchmark for Twig 1.40.1
- Loading branch information
0 parents
commit 82f67b6
Showing
14 changed files
with
1,008 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.idea/ | ||
vendor/ | ||
composer.lock | ||
/var/cache | ||
!/var/cache/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace AbstractComponentConfiguration; | ||
|
||
abstract class AbstractComponentConfiguration | ||
{ | ||
public static function getComponentType(): int | ||
{ | ||
return 3; | ||
} | ||
|
||
public static function getComponentName(): string | ||
{ | ||
return 'Twig'; | ||
} | ||
|
||
public static function getComponentSlug(): string | ||
{ | ||
return 'twig'; | ||
} | ||
|
||
public static function isPhp56Enabled(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public static function isPhp70Enabled(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public static function isPhp71Enabled(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public static function isPhp72Enabled(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public static function isPhp73Enabled(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public static function getBenchmarkUrl(): string | ||
{ | ||
return 'index.php'; | ||
} | ||
|
||
public static function getCoreDependencyName(): string | ||
{ | ||
return 'twig/twig'; | ||
} | ||
|
||
public static function getCoreDependencyMajorVersion(): int | ||
{ | ||
return 1; | ||
} | ||
|
||
public static function getCoreDependencyMinorVersion(): int | ||
{ | ||
return 40; | ||
} | ||
|
||
public static function getCoreDependencyPatchVersion(): int | ||
{ | ||
return 1; | ||
} | ||
|
||
public static function getBenchmarkType(): int | ||
{ | ||
return 1; | ||
} | ||
|
||
public static function getSourceCodeUrls(): array | ||
{ | ||
return [ | ||
'entryPoint' => 'https://github.com/phpbenchmarks/twig-common/blob/twig_1_hello-world/helloworld.php', | ||
'template' => 'https://github.com/phpbenchmarks/twig-common/blob/twig_1_hello-world/templates/helloworld.html.twig' | ||
]; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.