Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moved service definitions to feature files
  • Loading branch information
Nyholm committed Dec 26, 2019
commit 19fd0583d308a3d352e3664bc033430c49b2deb8
2 changes: 1 addition & 1 deletion DependencyInjection/TranslationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function load(array $configs, ContainerBuilder $container): void
$this->handleConfigNode($container, $config);

if ($config['webui']['enabled']) {
$loader->load('webui.yml');
$this->enableWebUi($container, $config);
} else {
$container->setParameter('php_translation.webui.enabled', false);
Expand Down Expand Up @@ -83,7 +84,6 @@ public function load(array $configs, ContainerBuilder $container): void
}

$loader->load('console.yml');
$loader->load('controllers.yml');
}

/**
Expand Down
12 changes: 11 additions & 1 deletion Resources/config/edit_in_place.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
services:
php_translation.edit_in_place.response_listener:
Translation\Bundle\Controller\EditInPlaceController:
autowire: true
public: true
tags: ['container.service_subscriber']
arguments:
- '@Translation\Bundle\Service\StorageManager'
- '@Translation\Bundle\Service\CacheClearer'
- '@Symfony\Component\Validator\Validator\ValidatorInterface'


php_translation.edit_in_place.response_listener:
class: Translation\Bundle\EventListener\EditInPlaceResponseListener
tags:
- { name: 'kernel.event_listener', event: 'kernel.response', method: 'onKernelResponse' }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
services:
Translation\Bundle\Controller\EditInPlaceController:
autowire: true
public: true
tags: ['container.service_subscriber']
arguments:
- '@Translation\Bundle\Service\StorageManager'
- '@Translation\Bundle\Service\CacheClearer'
- '@Symfony\Component\Validator\Validator\ValidatorInterface'

Translation\Bundle\Controller\WebUIController:
autowire: true
public: true
Expand Down