|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +namespace PhpBenchmarks\BenchmarkConfiguration; |
| 6 | + |
| 7 | +class Configuration |
| 8 | +{ |
| 9 | + public static function getComponentType(): int |
| 10 | + { |
| 11 | + return 2; |
| 12 | + } |
| 13 | + |
| 14 | + public static function getComponentName(): string |
| 15 | + { |
| 16 | + return 'Symfony'; |
| 17 | + } |
| 18 | + |
| 19 | + public static function getComponentSlug(): string |
| 20 | + { |
| 21 | + return 'symfony'; |
| 22 | + } |
| 23 | + |
| 24 | + public static function isCompatibleWithPhp(int $major, int $minor): bool |
| 25 | + { |
| 26 | + return $major === 7 && $minor >= 1; |
| 27 | + } |
| 28 | + |
| 29 | + public static function getBenchmarkUrl(): string |
| 30 | + { |
| 31 | + return '/benchmark/rest'; |
| 32 | + } |
| 33 | + |
| 34 | + public static function getCoreDependencyName(): string |
| 35 | + { |
| 36 | + return 'symfony/framework-bundle'; |
| 37 | + } |
| 38 | + |
| 39 | + public static function getCoreDependencyMajorVersion(): int |
| 40 | + { |
| 41 | + return 4; |
| 42 | + } |
| 43 | + |
| 44 | + public static function getCoreDependencyMinorVersion(): int |
| 45 | + { |
| 46 | + return 4; |
| 47 | + } |
| 48 | + |
| 49 | + public static function getCoreDependencyPatchVersion(): int |
| 50 | + { |
| 51 | + return 0; |
| 52 | + } |
| 53 | + |
| 54 | + public static function getBenchmarkType(): int |
| 55 | + { |
| 56 | + return 3; |
| 57 | + } |
| 58 | + |
| 59 | + public static function getSourceCodeUrls(): array |
| 60 | + { |
| 61 | + return [ |
| 62 | + 'route' => 'https://github.com/phpbenchmarks/symfony/tree/4.4.0.3/config/routes.yaml#L1', |
| 63 | + 'controller' => 'https://github.com/phpbenchmarks/symfony/tree/4.4.0.3/src/Controller/RestApiController.php', |
| 64 | + 'randomizeLanguageDispatchEvent' => 'https://github.com/phpbenchmarks/symfony/tree/4.4.0.3/src/Controller/RestApiController.php#L15', |
| 65 | + 'randomizeLanguageEventListener' => 'https://github.com/phpbenchmarks/symfony/tree/4.4.0.3/src/EventSubscriber/DefineLocaleEventSubscriber.php', |
| 66 | + 'translations' => 'https://github.com/phpbenchmarks/symfony/tree/4.4.0.3/translations/phpbenchmarks.en_GB.yaml', |
| 67 | + 'translate' => 'https://github.com/phpbenchmarks/symfony/tree/4.4.0.3/src/Normalizer/UserNormalizer.php#L48', |
| 68 | + 'serialize' => 'https://github.com/phpbenchmarks/symfony/tree/4.4.0.3/src/Normalizer/UserNormalizer.php#L42' |
| 69 | + ]; |
| 70 | + } |
| 71 | +} |
0 commit comments