-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REST API benchmark for Ubiquity 2.1.2
- Loading branch information
0 parents
commit d599ad8
Showing
20 changed files
with
968 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,9 @@ | ||
app/translations | ||
vendor/ | ||
.idea/ | ||
composer.lock | ||
/app/cache | ||
!/app/cache/.gitkeep | ||
.project | ||
.settings/ | ||
.buildpath |
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,91 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace AbstractComponentConfiguration; | ||
|
||
abstract class AbstractComponentConfiguration | ||
{ | ||
public static function getComponentType(): int | ||
{ | ||
return 2; | ||
} | ||
|
||
public static function getComponentName(): string | ||
{ | ||
return 'Ubiquity'; | ||
} | ||
|
||
public static function getComponentSlug(): string | ||
{ | ||
return 'ubiquity'; | ||
} | ||
|
||
public static function isPhp56Enabled(): bool | ||
{ | ||
return false; | ||
} | ||
|
||
public static function isPhp70Enabled(): bool | ||
{ | ||
return false; | ||
} | ||
|
||
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?c=benchmark/rest'; | ||
} | ||
|
||
public static function getCoreDependencyName(): string | ||
{ | ||
return 'phpmv/ubiquity'; | ||
} | ||
|
||
public static function getCoreDependencyMajorVersion(): int | ||
{ | ||
return 2; | ||
} | ||
|
||
public static function getCoreDependencyMinorVersion(): int | ||
{ | ||
return 1; | ||
} | ||
|
||
public static function getCoreDependencyPatchVersion(): int | ||
{ | ||
return 2; | ||
} | ||
|
||
public static function getBenchmarkType(): int | ||
{ | ||
return 3; | ||
} | ||
|
||
public static function getSourceCodeUrls(): array | ||
{ | ||
return [ | ||
'route' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/controllers/rest/RestApiController.php#L17', | ||
'controller' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/controllers/rest/RestApiController.php', | ||
'randomizeLanguageDispatchEvent' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/controllers/rest/RestApiController.php#L30', | ||
'randomizeLanguageEventListener' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/eventListener/DefineLocaleEventListener.php', | ||
'translations' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/translations/en_GB/phpbenchmarks.php', | ||
'translate' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/normalizer/UserNormalizer.php#L30', | ||
'serialize' => 'https://github.com/phpbenchmarks/ubiquity-common/blob/2.3.0/normalizer/UserNormalizer.php' | ||
]; | ||
} | ||
} |
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.