-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zakhar Shokel
committed
Apr 26, 2024
1 parent
2b39d97
commit ac56e72
Showing
18 changed files
with
125 additions
and
82 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
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
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 @@ | ||
<?xml version="1.0" ?> | ||
|
||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
<services> | ||
<service id="annotations.dummy_registry" class="Doctrine\Common\Annotations\AnnotationRegistry"/> | ||
</services> | ||
</container> |
2 changes: 1 addition & 1 deletion
2
...tedClassRequiredPermissionsController.php → ...tedClassRequiredPermissionsController.php
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
2 changes: 1 addition & 1 deletion
2
...r/AttributedClassValidationController.php → ...e/AttributedClassValidationController.php
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
2 changes: 1 addition & 1 deletion
2
...undle/Controller/AttributedController.php → ...roller/Attribute/AttributedController.php
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
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
8 changes: 8 additions & 0 deletions
8
tests/Functional/Fixtures/FixtureTestBundle/Resources/config/attributed_routing.xml
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<routes xmlns="http://symfony.com/schema/routing" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd"> | ||
|
||
<import resource="../../Controller/Attribute/" type="annotation"/> | ||
</routes> |
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
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
13 changes: 13 additions & 0 deletions
13
tests/Functional/Fixtures/FixtureTestBundle/Service/TestHelper.php
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,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Paysera\Bundle\ApiBundle\Tests\Functional\Fixtures\FixtureTestBundle\Service; | ||
|
||
class TestHelper | ||
{ | ||
public static function phpAttributeSupportExists(): bool | ||
{ | ||
return PHP_VERSION_ID >= 80100; | ||
} | ||
} |
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
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,3 @@ | ||
framework: | ||
router: | ||
resource: '%kernel.project_dir%/tests/Functional/Fixtures/config/attributed_routing.yml' |
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,7 @@ | ||
paysera_fixture_test: | ||
resource: "@PayseraFixtureTestBundle/Resources/config/routing.xml" | ||
prefix: / | ||
|
||
paysera_fixture_attributed_test: | ||
resource: '@PayseraFixtureTestBundle/Resources/config/attributed_routing.xml' | ||
prefix: / |
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
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 |
---|---|---|
@@ -1,46 +1,12 @@ | ||
framework: | ||
secret: 'secret' | ||
router: | ||
resource: '%kernel.root_dir%/config/legacy_routing.yml' | ||
validation: ~ | ||
|
||
security: | ||
providers: | ||
in_memory: | ||
memory: | ||
users: | ||
user: | ||
password: pass | ||
roles: 'ROLE_USER' | ||
admin: | ||
password: pass | ||
roles: ['ROLE_USER', 'ROLE_ADMIN'] | ||
firewalls: | ||
main: | ||
anonymous: true | ||
http_basic: ~ | ||
stateless: true | ||
encoders: | ||
Symfony\Component\Security\Core\User\User: plaintext | ||
|
||
doctrine: | ||
orm: | ||
auto_mapping: true | ||
dbal: | ||
driver: pdo_sqlite | ||
memory: true | ||
charset: UTF8 | ||
|
||
services: | ||
logger: | ||
class: Psr\Log\NullLogger | ||
public: true | ||
rest_registry: | ||
alias: paysera_api.rest_request_options_registry | ||
public: true | ||
|
||
paysera_api: | ||
path_attribute_resolvers: | ||
Paysera\Bundle\ApiBundle\Tests\Functional\Fixtures\FixtureTestBundle\Entity\PersistedEntity: | ||
field: someField | ||
Paysera\Bundle\ApiBundle\Tests\Functional\Fixtures\FixtureTestBundle\Entity\SimplePersistedEntity: ~ |
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,37 @@ | ||
framework: | ||
secret: 'secret' | ||
validation: ~ | ||
|
||
security: | ||
providers: | ||
in_memory: | ||
memory: | ||
users: | ||
user: | ||
password: pass | ||
roles: 'ROLE_USER' | ||
admin: | ||
password: pass | ||
roles: ['ROLE_USER', 'ROLE_ADMIN'] | ||
|
||
doctrine: | ||
orm: | ||
auto_mapping: true | ||
dbal: | ||
driver: pdo_sqlite | ||
memory: true | ||
charset: UTF8 | ||
|
||
services: | ||
logger: | ||
class: Psr\Log\NullLogger # Symfony\Component\ErrorHandler\BufferingLogger | ||
public: true | ||
rest_registry: | ||
alias: paysera_api.rest_request_options_registry | ||
public: true | ||
|
||
paysera_api: | ||
path_attribute_resolvers: | ||
Paysera\Bundle\ApiBundle\Tests\Functional\Fixtures\FixtureTestBundle\Entity\PersistedEntity: | ||
field: someField | ||
Paysera\Bundle\ApiBundle\Tests\Functional\Fixtures\FixtureTestBundle\Entity\SimplePersistedEntity: ~ |
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