forked from wallabag/wallabag
Use FQCN as service name for ImportChain
This commit is contained in:
@ -4,6 +4,7 @@ namespace Wallabag\ImportBundle\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Wallabag\ImportBundle\Import\ImportChain;
|
||||
|
||||
class ImportController extends Controller
|
||||
{
|
||||
@ -13,7 +14,7 @@ class ImportController extends Controller
|
||||
public function importAction()
|
||||
{
|
||||
return $this->render('WallabagImportBundle:Import:index.html.twig', [
|
||||
'imports' => $this->get('wallabag_import.chain')->getAll(),
|
||||
'imports' => $this->get(ImportChain::class)->getAll(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@ -10,12 +10,12 @@ class ImportCompilerPass implements CompilerPassInterface
|
||||
{
|
||||
public function process(ContainerBuilder $container)
|
||||
{
|
||||
if (!$container->hasDefinition('wallabag_import.chain')) {
|
||||
if (!$container->hasDefinition(ImportChain::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$definition = $container->getDefinition(
|
||||
'wallabag_import.chain'
|
||||
ImportChain::class
|
||||
);
|
||||
|
||||
$taggedServices = $container->findTaggedServiceIds(
|
||||
|
||||
@ -3,7 +3,7 @@ imports:
|
||||
- { resource: redis.yml }
|
||||
|
||||
services:
|
||||
wallabag_import.chain:
|
||||
Wallabag\ImportBundle\Import\ImportChain:
|
||||
class: Wallabag\ImportBundle\Import\ImportChain
|
||||
|
||||
wallabag_import.pocket.client:
|
||||
|
||||
Reference in New Issue
Block a user