Skip to content

Commit f1218b4

Browse files
committed
Create REST API benchmark for Symfony 4.3.0-BETA1
0 parents  commit f1218b4

28 files changed

+7773
-0
lines changed

.env

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
###> symfony/framework-bundle ###
2+
APP_ENV=prod
3+
APP_DEBUG=false
4+
APP_SECRET=85ea2a3913a60e916b140689fef3ef0c
5+
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
6+
#TRUSTED_HOSTS=localhost,example.com
7+
###< symfony/framework-bundle ###

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.idea/
2+
composer.lock
3+
!var/cache/.gitkeep
4+
!var/log/.gitkeep
5+
6+
###> symfony/framework-bundle ###
7+
/.env.local
8+
/.env.*.local
9+
/public/bundles/
10+
/var/
11+
/vendor/
12+
###< symfony/framework-bundle ###
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace AbstractComponentConfiguration;
6+
7+
abstract class AbstractComponentConfiguration
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 isPhp56Enabled(): bool
25+
{
26+
return false;
27+
}
28+
29+
public static function isPhp70Enabled(): bool
30+
{
31+
return false;
32+
}
33+
34+
public static function isPhp71Enabled(): bool
35+
{
36+
return true;
37+
}
38+
39+
public static function isPhp72Enabled(): bool
40+
{
41+
return true;
42+
}
43+
44+
public static function isPhp73Enabled(): bool
45+
{
46+
return true;
47+
}
48+
49+
public static function getBenchmarkUrl(): string
50+
{
51+
return 'benchmark/rest';
52+
}
53+
54+
public static function getCoreDependencyName(): string
55+
{
56+
return 'symfony/framework-bundle';
57+
}
58+
59+
public static function getCoreDependencyMajorVersion(): int
60+
{
61+
return 4;
62+
}
63+
64+
public static function getCoreDependencyMinorVersion(): int
65+
{
66+
return 3;
67+
}
68+
69+
public static function getCoreDependencyPatchVersion(): int
70+
{
71+
return 0;
72+
}
73+
74+
public static function getBenchmarkType(): int
75+
{
76+
return 3;
77+
}
78+
79+
public static function getSourceCodeUrls(): array
80+
{
81+
return [
82+
'route' => 'https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_rest-api/Resources/config/routing.yml',
83+
'controller' => 'https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_rest-api/Controller/RestApiController.php',
84+
'randomizeLanguageDispatchEvent' => 'https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_rest-api/Controller/RestApiController.php#L16',
85+
'randomizeLanguageEventListener' => 'https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_rest-api/EventListener/DefineLocaleEventListener.php',
86+
'translations' => 'https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_rest-api/Resources/translations/phpbenchmarks.en_GB.yml',
87+
'translate' => 'https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_rest-api/Normalizer/UserNormalizer.php#L52',
88+
'serialize' => 'https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_rest-api/Normalizer/UserNormalizer.php'
89+
];
90+
}
91+
}

0 commit comments

Comments
 (0)