-
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.
feature: update resource metadata properties and factories to handle …
…new properties and resource filtering, and drops the yaml supports
- Loading branch information
1 parent
139e529
commit cb866ac
Showing
55 changed files
with
1,566 additions
and
723 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
services: | ||
lag_admin.resource.registry: '@LAG\AdminBundle\Resource\Registry\ResourceRegistryInterface' | ||
LAG\AdminBundle\Resource\Registry\ResourceRegistryInterface: | ||
class: LAG\AdminBundle\Resource\Registry\ResourceRegistry | ||
lag_admin.resource.registry: '@LAG\AdminBundle\Metadata\Registry\ResourceRegistryInterface' | ||
LAG\AdminBundle\Metadata\Registry\ResourceRegistryInterface: | ||
class: LAG\AdminBundle\Metadata\Registry\ResourceRegistry | ||
arguments: | ||
$resourcePaths: '%lag_admin.resource_paths%' | ||
$locator: '@lag_admin.metadata.locator' | ||
$resourceFactory: '@lag_admin.resource.factory' | ||
|
||
LAG\AdminBundle\Metadata\Registry\CacheRegistryDecorator: | ||
decorates: 'lag_admin.resource.registry' | ||
arguments: | ||
$decorated: '@.inner' | ||
|
||
lag_admin.metadata.locator: '@LAG\AdminBundle\Metadata\Locator\MetadataLocatorInterface' | ||
LAG\AdminBundle\Metadata\Locator\MetadataLocatorInterface: | ||
class: LAG\AdminBundle\Metadata\Locator\CompositeLocator | ||
arguments: | ||
$locators: !tagged_iterator lag_admin.resource.locator | ||
$kernel: '@kernel' | ||
|
||
LAG\AdminBundle\Metadata\Locator\AttributeLocator: | ||
tags: ['lag_admin.resource.locator'] | ||
|
||
LAG\AdminBundle\Metadata\Locator\YamlLocator: | ||
tags: ['lag_admin.resource.locator'] | ||
lag_admin.resource.context: '@LAG\AdminBundle\Metadata\Context\ResourceContextInterface' | ||
LAG\AdminBundle\Metadata\Context\ResourceContextInterface: | ||
class: LAG\AdminBundle\Metadata\Context\ResourceContext | ||
arguments: | ||
$parametersExtractor: '@lag_admin.request.parameters_extractor' | ||
$resourceRegistry: '@lag_admin.resource.registry' |
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,42 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
colors="true" | ||
bootstrap="tests/bootstrap.php" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" | ||
cacheDirectory="var/phpunit/cache"> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="var/phpunit/logs/clover.xml"/> | ||
<html outputDirectory="var/phpunit/coverage" | ||
lowUpperBound="35" | ||
highLowerBound="70"/> | ||
</report> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="AdminBundle Test Suite"> | ||
<directory>tests/phpunit</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<server name="KERNEL_DIR" value="src/LAG/AdminBundle/Tests/Fixtures/app"/> | ||
<!-- ###+ symfony/framework-bundle ### --> | ||
<env name="APP_ENV" value="test"/> | ||
<env name="APP_SECRET" value="4885b6328504a001d0e801257fb51d3f"/> | ||
<env name="APP_SECRET" value="4885b6328504a001d0e801257fb51d3f"/> | ||
<!-- ###- symfony/framework-bundle ### --> | ||
<!-- ###+ doctrine/doctrine-bundle ### --> | ||
<!-- Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url --> | ||
<!-- IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml --> | ||
<!-- --> | ||
<!-- DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" --> | ||
<!-- DATABASE_URL="mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7" --> | ||
<env name="DATABASE_URL" value="postgresql://db_user:[email protected]:5432/db_name?serverVersion=13&charset=utf8"/> | ||
<!-- ###- doctrine/doctrine-bundle ### --> | ||
</php> | ||
<logging> | ||
<junit outputFile="var/phpunit/logs/junit.xml"/> | ||
</logging> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="tests/bootstrap.php" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" cacheDirectory="var/phpunit/cache"> | ||
<coverage> | ||
<report> | ||
<clover outputFile="var/phpunit/logs/clover.xml"/> | ||
<html outputDirectory="var/phpunit/coverage" lowUpperBound="35" highLowerBound="70"/> | ||
</report> | ||
</coverage> | ||
|
||
<testsuites> | ||
<testsuite name="AdminBundle Test Suite"> | ||
<directory>tests/phpunit</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<php> | ||
<server name="KERNEL_DIR" value="src/LAG/AdminBundle/Tests/Fixtures/app"/> | ||
<!-- ###+ symfony/framework-bundle ### --> | ||
<env name="APP_ENV" value="test"/> | ||
<env name="APP_SECRET" value="4885b6328504a001d0e801257fb51d3f"/> | ||
<env name="APP_SECRET" value="4885b6328504a001d0e801257fb51d3f"/> | ||
<!-- ###- symfony/framework-bundle ### --> | ||
<!-- ###+ doctrine/doctrine-bundle ### --> | ||
<!-- Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url --> | ||
<!-- IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml --> | ||
<!-- --> | ||
<!-- DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" --> | ||
<!-- DATABASE_URL="mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7" --> | ||
<env name="DATABASE_URL" | ||
value="postgresql://db_user:[email protected]:5432/db_name?serverVersion=13&charset=utf8"/> | ||
<!-- ###- doctrine/doctrine-bundle ### --> | ||
</php> | ||
|
||
<logging> | ||
<junit outputFile="var/phpunit/logs/junit.xml"/> | ||
</logging> | ||
|
||
<source> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
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
Oops, something went wrong.