2 |
3 | Hello
4 | An error has occurred. Message: {{ errorMessage }}
5 |
6 |
7 | Please contact support Team in order to investigate error log.
8 |
9 |
10 | Thanks in Advance!
11 |
--------------------------------------------------------------------------------
/templates/Swagger/parameter_criteria.twig:
--------------------------------------------------------------------------------
1 | Used search criteria in request.
2 |
3 |
Usage examples:
4 |
{{ examples | join(' ') | raw }}
5 |
--------------------------------------------------------------------------------
/templates/Swagger/parameter_limit.twig:
--------------------------------------------------------------------------------
1 | Used limit option in request.
2 |
3 |
Usage examples:
4 |
{{ examples | join(' ') | raw }}
5 |
--------------------------------------------------------------------------------
/templates/Swagger/parameter_offset.twig:
--------------------------------------------------------------------------------
1 | Used offset option in request.
2 |
3 |
Usage examples:
4 |
{{ examples | join(' ') | raw }}
5 |
--------------------------------------------------------------------------------
/templates/Swagger/parameter_order.twig:
--------------------------------------------------------------------------------
1 | Used order in request.
2 |
3 |
Usage examples:
4 |
{{ examples | join(' ') | raw }}
5 |
6 |
Advanced usage examples:
7 |
{{ advancedExamples | join(' ') | raw }}
8 |
--------------------------------------------------------------------------------
/templates/Swagger/parameter_populate.twig:
--------------------------------------------------------------------------------
1 | Used populate parts in request.
2 |
3 | {% if associations %}
4 |
Associations that can be used:
5 |
{{ associations | join(' ') | raw }}
6 | {% endif %}
7 |
8 |
Usage examples:
9 |
{{ examples | join(' ') | raw }}
10 |
11 |
12 |
--------------------------------------------------------------------------------
/templates/Swagger/parameter_search.twig:
--------------------------------------------------------------------------------
1 | Used search terms in request.
2 |
3 |
Properties which affected:
4 |
{{ properties | join(' ') | raw }}
5 |
6 |
Usage examples:
7 |
{{ examples | join(' ') | raw }}
8 |
--------------------------------------------------------------------------------
/templates/base.html.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {% block title %}Welcome!{% endblock %}
6 |
7 | {% block stylesheets %}
8 | {% endblock %}
9 |
10 | {% block javascripts %}
11 | {% block importmap %}{{ importmap('app') }}{% endblock %}
12 | {% endblock %}
13 |
14 |
15 | {% block body %}{% endblock %}
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/Application/Controller/CommandSchedulerTest.php:
--------------------------------------------------------------------------------
1 | getTestClient();
24 | $client->request('GET', '/command-scheduler/list');
25 |
26 | $response = $client->getResponse();
27 | // check for 401 due to allow only for user with admin role
28 | static::assertSame(Response::HTTP_UNAUTHORIZED, $response->getStatusCode());
29 | unset($response, $client);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/tests/Application/Controller/DocumentationTest.php:
--------------------------------------------------------------------------------
1 | getTestClient();
24 | $client->request('GET', '/api/doc');
25 |
26 | static::assertSame(Response::HTTP_OK, $client->getResponse()->getStatusCode());
27 | }
28 |
29 | /**
30 | * @throws Throwable
31 | */
32 | #[TestDox('Test that documentation json (/api/doc.json) is working.')]
33 | public function testThatDocumentationJsonWorks(): void
34 | {
35 | $client = $this->getTestClient();
36 | $client->request('GET', '/api/doc.json');
37 |
38 | static::assertSame(Response::HTTP_OK, $client->getResponse()->getStatusCode());
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tests/Application/Tool/Transport/Controller/Api/IndexControllerTest.php:
--------------------------------------------------------------------------------
1 | getTestClient();
26 |
27 | $client->request('GET', $this->baseUrl);
28 | $response = $client->getResponse();
29 | static::assertSame(Response::HTTP_OK, $response->getStatusCode(), "Response:\n" . $response);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/tests/Integration/General/Application/Validator/Constraints/src/TestEntityReference.php:
--------------------------------------------------------------------------------
1 | throwException ??= false;
21 | }
22 |
23 | #[Override]
24 | public function getId(): string
25 | {
26 | return 'xxx';
27 | }
28 |
29 | /**
30 | * @throws EntityNotFoundException
31 | */
32 | #[Override]
33 | public function getCreatedAt(): ?DateTimeImmutable
34 | {
35 | if ($this->throwException) {
36 | throw new EntityNotFoundException('Entity not found');
37 | }
38 |
39 | return null;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/tests/Unit/ExampleTest.php:
--------------------------------------------------------------------------------
1 | $input instanceof Stringable ? (string)$input : $input;
25 |
26 | return JSON::encode(array_map($iterator, $this->getArrayCopy()));
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/tools/01_phpunit/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "phpunit/phpunit": "12.1.*",
9 | "dama/doctrine-test-bundle": "8.3.*",
10 | "symfony/browser-kit": "7.2.*",
11 | "symfony/css-selector": "7.2.*",
12 | "symfony/phpunit-bridge": "7.2.*",
13 | "roave/security-advisories": "dev-latest"
14 | },
15 | "config": {
16 | "allow-plugins": true,
17 | "platform": {
18 | "php": "8.4.0"
19 | },
20 | "preferred-install": {
21 | "*": "dist"
22 | },
23 | "sort-packages": true
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/tools/02_phpstan/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "phpstan/phpstan": "2.1.*",
9 | "phpstan/phpstan-deprecation-rules": "2.0.*",
10 | "phpstan/phpstan-phpunit": "2.0.*",
11 | "phpstan/phpstan-symfony": "2.0.*",
12 | "roave/security-advisories": "dev-latest"
13 | },
14 | "config": {
15 | "allow-plugins": true,
16 | "platform": {
17 | "php": "8.4.0"
18 | },
19 | "preferred-install": {
20 | "*": "dist"
21 | },
22 | "sort-packages": true
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/tools/03_ecs/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "friendsofphp/php-cs-fixer": "3.75.*",
9 | "squizlabs/php_codesniffer": "3.13.*",
10 | "symplify/easy-coding-standard": "12.5.*",
11 | "roave/security-advisories": "dev-latest"
12 | },
13 | "config": {
14 | "allow-plugins": true,
15 | "platform": {
16 | "php": "8.4.0"
17 | },
18 | "preferred-install": {
19 | "*": "dist"
20 | },
21 | "sort-packages": true
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/tools/04_php-coveralls/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "php-coveralls/php-coveralls": "2.8.*",
9 | "roave/security-advisories": "dev-latest"
10 | },
11 | "config": {
12 | "allow-plugins": true,
13 | "platform": {
14 | "php": "8.4.0"
15 | },
16 | "preferred-install": {
17 | "*": "dist"
18 | },
19 | "sort-packages": true
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tools/05_phpinsights/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "nunomaduro/phpinsights": "2.13.*",
9 | "roave/security-advisories": "dev-latest"
10 | },
11 | "config": {
12 | "allow-plugins": true,
13 | "platform": {
14 | "php": "8.4.0"
15 | },
16 | "preferred-install": {
17 | "*": "dist"
18 | },
19 | "sort-packages": true
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tools/06_phpmd/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "phpmd/phpmd": "2.15.*",
9 | "roave/security-advisories": "dev-latest"
10 | },
11 | "config": {
12 | "allow-plugins": true,
13 | "platform": {
14 | "php": "8.4.0"
15 | },
16 | "preferred-install": {
17 | "*": "dist"
18 | },
19 | "sort-packages": true
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tools/07_phpmetrics/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "phpmetrics/phpmetrics": "2.8.*",
9 | "roave/security-advisories": "dev-latest"
10 | },
11 | "config": {
12 | "allow-plugins": true,
13 | "platform": {
14 | "php": "8.4.0"
15 | },
16 | "preferred-install": {
17 | "*": "dist"
18 | },
19 | "sort-packages": true
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tools/08_rector/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "rector/rector": "2.0.*",
9 | "roave/security-advisories": "dev-latest"
10 | },
11 | "config": {
12 | "allow-plugins": true,
13 | "platform": {
14 | "php": "8.4.0"
15 | },
16 | "preferred-install": {
17 | "*": "dist"
18 | },
19 | "sort-packages": true
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tools/09_composer/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "ergebnis/composer-normalize": "^2.47",
9 | "icanhazstring/composer-unused": "^0.9",
10 | "maglnet/composer-require-checker": "^4.16",
11 | "roave/security-advisories": "dev-latest"
12 | },
13 | "config": {
14 | "allow-plugins": true,
15 | "platform": {
16 | "php": "8.4.0"
17 | },
18 | "preferred-install": {
19 | "*": "dist"
20 | },
21 | "sort-packages": true
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/tools/10_phpcpd/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "systemsdk/docker-symfony-api-tools",
3 | "description": "",
4 | "require": {
5 | "php": "^8.4.0"
6 | },
7 | "require-dev": {
8 | "systemsdk/phpcpd": "8.2.*",
9 | "roave/security-advisories": "dev-latest"
10 | },
11 | "config": {
12 | "allow-plugins": true,
13 | "platform": {
14 | "php": "8.4.0"
15 | },
16 | "preferred-install": {
17 | "*": "dist"
18 | },
19 | "sort-packages": true
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/translations/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/systemsdk/docker-symfony-api/b5450b7e251e22aa56e83a9c55378cc2aa661018/translations/.gitignore
--------------------------------------------------------------------------------
/translations/crypt.en.yaml:
--------------------------------------------------------------------------------
1 | OS does not support crypt algorithm: OS does not support crypt algorithm.
2 | Missing or wrong data for decrypt: Missing or wrong data for decrypt.
3 | Can not generate ivLen param for crypt: Can not generate ivLen param for crypt.
4 | Can not generate iv param for crypt: Can not generate iv param for crypt.
5 | Can not encrypt data: Can not encrypt data.
6 | Can not convert iv or tag param for decrypt: Can not convert iv or tag param for decrypt.
7 | Can not decrypt data: Can not decrypt data.
8 |
--------------------------------------------------------------------------------
/translations/crypt.ru.yaml:
--------------------------------------------------------------------------------
1 | OS does not support crypt algorithm: OS не поддерживает алгоритм шифрования.
2 | Missing or wrong data for decrypt: Отсутствуют или неверные данные для расшифровки.
3 | Can not generate ivLen param for crypt: Невозможно сгенерировать ivLen параметр для шифрования.
4 | Can not generate iv param for crypt: Невозможно сгенерировать iv параметр для шифрования.
5 | Can not encrypt data: Невозможно зашифровать данные.
6 | Can not convert iv or tag param for decrypt: Невозможно конвертировать iv или tag параметр для расшифровки.
7 | Can not decrypt data: Невозможно расшифровать данные.
8 |
--------------------------------------------------------------------------------
/translations/crypt.ua.yaml:
--------------------------------------------------------------------------------
1 | OS does not support crypt algorithm: OS не підтримує алгоритм шифрування.
2 | Missing or wrong data for decrypt: Відсутні або невірні дані для розшифрування.
3 | Can not generate ivLen param for crypt: Неможливо згенерувати ivLen параметр для шифрування.
4 | Can not generate iv param for crypt: Неможливо згенерувати iv параметр для шифрування.
5 | Can not encrypt data: Неможливо зашифрувати дані.
6 | Can not convert iv or tag param for decrypt: Неможливо конвертувати iv або tag параметр для розшифрування.
7 | Can not decrypt data: Неможливо розшифрувати дані.
8 |
--------------------------------------------------------------------------------
/translations/security.fi.yaml:
--------------------------------------------------------------------------------
1 | Invalid credentials.: Virheelliset käyttäjätunnukset.
2 |
--------------------------------------------------------------------------------
/translations/security.ru.yaml:
--------------------------------------------------------------------------------
1 | Invalid credentials.: Неверные учетные данные.
2 |
--------------------------------------------------------------------------------
/translations/security.ua.yaml:
--------------------------------------------------------------------------------
1 | Invalid credentials.: Невірні облікові дані.
2 |
--------------------------------------------------------------------------------
/var/elasticsearch-data/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/systemsdk/docker-symfony-api/b5450b7e251e22aa56e83a9c55378cc2aa661018/var/elasticsearch-data/.gitkeep
--------------------------------------------------------------------------------