fix sf4 error with controller service dependencyInjection

This commit is contained in:
Tchama 2020-07-27 12:29:23 +02:00
parent ad8c1bbe9f
commit efee2dc2a9
3 changed files with 12 additions and 12 deletions

View File

@ -26,6 +26,14 @@ class ChillEventExtension extends Extension implements PrependExtensionInterface
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml'); $loader->load('services.yml');
$loader->load('services/authorization.yml');
$loader->load('services/controller.yml');
$loader->load('services/fixtures.yml');
$loader->load('services/forms.yml');
$loader->load('services/menu.yml');
$loader->load('services/repositories.yml');
$loader->load('services/search.yml');
$loader->load('services/timeline.yml');
} }
/* (non-PHPdoc) /* (non-PHPdoc)

View File

@ -1,14 +1,4 @@
services: services:
Chill\EventBundle\: Chill\EventBundle\:
resource: '../..' resource: '../../*'
exclude: '../../{Entity,Resources/migrations,Resources/test}' exclude: '../../{Entity,Resources/migrations,Resources/test}'
imports:
- { resource: './services/authorization.yml' }
- { resource: './services/controller.yml' }
- { resource: './services/fixtures.yml' }
- { resource: './services/forms.yml' }
- { resource: './services/menu.yml' }
- { resource: './services/repositories.yml' }
- { resource: './services/search.yml' }
- { resource: './services/timeline.yml' }

View File

@ -1,8 +1,10 @@
services: services:
Chill\EventBundle\Controller\EventController: Chill\EventBundle\Controller\EventController:
arguments: arguments:
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface' $eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper' $authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
$formFactoryInterface: '@Symfony\Component\Form\FormFactoryInterface' $formFactoryInterface: '@Symfony\Component\Form\FormFactoryInterface'
$translator: '@Symfony\Component\Translation\TranslatorInterface' $translator: '@Symfony\Component\Translation\TranslatorInterface'
tags: ['controller.service_arguments'] public: true