Jeroen De Meerleer
563c97925f
- Refactored the `Page` class from the `App\Repository` namespace to the `App\Service` namespace. - Updated the file path references in the `getPage()` method of the `Page` class to use `$this->kernel` instead of `$kernel`. - Renamed the file from `src/Repository/Page.php` to `src/Service/Page.php`. - Updated the import statement in the `DefaultController.php` file to reflect this change. This commit improves code organization and ensures that file paths are correctly referenced.
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
# This file is the entry point to configure your own services.
|
|
# Files in the packages/ subdirectory configure your dependencies.
|
|
|
|
# Put parameters here that don't need to change on each machine where the app is deployed
|
|
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
|
|
parameters:
|
|
|
|
services:
|
|
# default configuration for services in *this* file
|
|
_defaults:
|
|
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
|
|
App\:
|
|
resource: '../src/'
|
|
exclude:
|
|
- '../src/DependencyInjection/'
|
|
- '../src/Entity/'
|
|
- '../src/Kernel.php'
|
|
App\EventSubscriber\ExceptionListener:
|
|
tags:
|
|
- { name: kernel.event_listener, event: kernel.exception }
|
|
App\Service\Page:
|
|
arguments: [ '@kernel']
|
|
|
|
|
|
# add more service definitions when explicit configuration is needed
|
|
# please note that last definitions always *replace* previous ones
|