mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix sf4 error with controller service dependencyInjection
This commit is contained in:
parent
ad8c1bbe9f
commit
efee2dc2a9
@ -26,6 +26,14 @@ class ChillEventExtension extends Extension implements PrependExtensionInterface
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$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)
|
||||
|
@ -1,14 +1,4 @@
|
||||
services:
|
||||
Chill\EventBundle\:
|
||||
resource: '../..'
|
||||
resource: '../../*'
|
||||
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' }
|
||||
|
@ -1,8 +1,10 @@
|
||||
services:
|
||||
|
||||
Chill\EventBundle\Controller\EventController:
|
||||
arguments:
|
||||
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
||||
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
|
||||
$formFactoryInterface: '@Symfony\Component\Form\FormFactoryInterface'
|
||||
$translator: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
tags: ['controller.service_arguments']
|
||||
public: true
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user