Commit 9ad93bde authored by Nikita Chernykh's avatar Nikita Chernykh
Browse files

Merge branch 'STA-960' into 'main'

Sta 960

See merge request !16
parents 319df7eb b544b828
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
    "minimum-stability": "stable",
    "prefer-stable": true,
    "require": {
        "php": ">=8.1",
        "php": ">=8.2",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "doctrine/dbal": "^3",
+2 −2
Original line number Diff line number Diff line
@@ -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
+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
+3 −5
Original line number Diff line number Diff line
@@ -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
+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