Loading app/composer.json +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "minimum-stability": "stable", "prefer-stable": true, "require": { "php": ">=8.1", "php": ">=8.2", "ext-ctype": "*", "ext-iconv": "*", "doctrine/dbal": "^3", Loading app/config/packages/doctrine.yaml +2 −2 Original line number Diff line number Diff line Loading @@ -21,8 +21,8 @@ doctrine: App: type: attribute is_bundle: false dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' dir: '%kernel.project_dir%/src/Shared/Entity' prefix: 'App\Shared\Entity' alias: App controller_resolver: auto_mapping: true Loading app/config/routes.yaml +9 −3 Original line number Diff line number Diff line controllers: newsControllers: resource: path: ../src/Controller/ namespace: App\Controller path: ../src/News/Controller/ namespace: App\News\Controller type: attribute restaurantsControllers: resource: path: ../src/Restaurants/Controller/ namespace: App\Restaurants\Controller type: attribute app/config/services.yaml +3 −5 Original line number Diff line number Diff line Loading @@ -11,14 +11,12 @@ services: autowire: true # Automatically injects dependencies in your services. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. # makes classes in src/ available to be used as services # this creates a service per class whose id is the fully-qualified class name # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones App\: resource: '../src/' exclude: - '../src/DependencyInjection/' - '../src/Entity/' - '../src/Kernel.php' # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones app/src/News/Collection/NewsCategoryCollection.php 0 → 100644 +16 −0 Original line number Diff line number Diff line <?php namespace App\News\Collection; use App\News\Dto\NewsCategoryDto; use App\Shared\Collection\DtoCollection; class NewsCategoryCollection extends DtoCollection { private string $collectionType = NewsCategoryDto::class; public function __construct(array $data = []) { parent::__construct($this->collectionType, $data); } } Loading
app/composer.json +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "minimum-stability": "stable", "prefer-stable": true, "require": { "php": ">=8.1", "php": ">=8.2", "ext-ctype": "*", "ext-iconv": "*", "doctrine/dbal": "^3", Loading
app/config/packages/doctrine.yaml +2 −2 Original line number Diff line number Diff line Loading @@ -21,8 +21,8 @@ doctrine: App: type: attribute is_bundle: false dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' dir: '%kernel.project_dir%/src/Shared/Entity' prefix: 'App\Shared\Entity' alias: App controller_resolver: auto_mapping: true Loading
app/config/routes.yaml +9 −3 Original line number Diff line number Diff line controllers: newsControllers: resource: path: ../src/Controller/ namespace: App\Controller path: ../src/News/Controller/ namespace: App\News\Controller type: attribute restaurantsControllers: resource: path: ../src/Restaurants/Controller/ namespace: App\Restaurants\Controller type: attribute
app/config/services.yaml +3 −5 Original line number Diff line number Diff line Loading @@ -11,14 +11,12 @@ services: autowire: true # Automatically injects dependencies in your services. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. # makes classes in src/ available to be used as services # this creates a service per class whose id is the fully-qualified class name # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones App\: resource: '../src/' exclude: - '../src/DependencyInjection/' - '../src/Entity/' - '../src/Kernel.php' # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones
app/src/News/Collection/NewsCategoryCollection.php 0 → 100644 +16 −0 Original line number Diff line number Diff line <?php namespace App\News\Collection; use App\News\Dto\NewsCategoryDto; use App\Shared\Collection\DtoCollection; class NewsCategoryCollection extends DtoCollection { private string $collectionType = NewsCategoryDto::class; public function __construct(array $data = []) { parent::__construct($this->collectionType, $data); } }