Skip to content

Commit 98715c6

Browse files
committed
Code validated by PHPBenchmarks kit 2.0.0
1 parent 16e4311 commit 98715c6

11 files changed

+101
-150
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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/helloworld';
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 2;
67+
}
68+
69+
public static function getCoreDependencyPatchVersion(): int
70+
{
71+
return 2;
72+
}
73+
74+
public static function getBenchmarkType(): int
75+
{
76+
return 1;
77+
}
78+
79+
public static function getSourceCodeUrls(): array
80+
{
81+
return [
82+
'route' => 'https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_hello-world/Resources/config/routing.yml',
83+
'controller' => 'https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_hello-world/Controller/HelloWorldController.php'
84+
];
85+
}
86+
}

.phpbenchmarks/codeLink.sh

-6
This file was deleted.

.phpbenchmarks/configuration.sh

-18
This file was deleted.

.phpbenchmarks/initBenchmark.sh

100644100755
+9-11
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ function clearCacheAndLogs() {
1212
[ "$?" != "0" ] && exit 1
1313
}
1414

15-
function initBenchmark() {
16-
# because of Symfony Flex bug (https://github.com/symfony/symfony/issues/29581), we need to remove vendor
17-
rm -rf vendor/
18-
clearCacheAndLogs
15+
# because of Symfony Flex bug (https://github.com/symfony/symfony/issues/29581), we need to remove vendor
16+
rm -rf vendor/
17+
clearCacheAndLogs
1918

20-
composer install --no-dev --classmap-authoritative
21-
[ "$?" != "0" ] && exit 1
19+
composer install --no-dev --classmap-authoritative --ansi
20+
[ "$?" != "0" ] && exit 1
2221

23-
clearCacheAndLogs
24-
php bin/console cache:warmup
25-
[ "$?" != "0" ] && exit 1
22+
clearCacheAndLogs
23+
php bin/console cache:warmup
24+
[ "$?" != "0" ] && exit 1
2625

27-
return 0
28-
}
26+
exit 0
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Hello World !
1+
Hello World !

.phpbenchmarks/vhost.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
server {
22
listen 80;
33
server_name ____HOST____;
4-
root ____PROJECT_DIR____/public;
4+
root ____INSTALLATION_PATH____/public;
55
location / {
66
try_files $uri /index.php$is_args$args;
77
}

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"symfony/config": "4.2.2",
2222
"symfony/var-exporter": "4.2.2",
2323
"symfony/cache": "4.2.2",
24-
"phpbenchmarks/symfony-common": "4.1.1",
25-
"phpbenchmarks/benchmark-kit": "~1.0.4"
24+
"phpbenchmarks/symfony-common": "4.1.1"
2625
},
2726
"config": {
2827
"preferred-install": {

composer.lock.php7.1

+1-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.lock.php7.2

+1-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.lock.php7.3

+1-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

symfony.lock

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"phpbenchmarks/benchmark-kit": {
3-
"version": "1.0.3"
4-
},
52
"phpbenchmarks/symfony-common": {
63
"version": "4.1.0"
74
},

0 commit comments

Comments
 (0)