mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Feature: bootstrap dependency injection for CronJobManager
This commit is contained in:
parent
1ebdcd1530
commit
b789250b8d
@ -11,6 +11,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Chill\MainBundle;
|
namespace Chill\MainBundle;
|
||||||
|
|
||||||
|
use Chill\MainBundle\Cron\CronJobInterface;
|
||||||
use Chill\MainBundle\CRUD\CompilerPass\CRUDControllerCompilerPass;
|
use Chill\MainBundle\CRUD\CompilerPass\CRUDControllerCompilerPass;
|
||||||
use Chill\MainBundle\DependencyInjection\CompilerPass\ACLFlagsCompilerPass;
|
use Chill\MainBundle\DependencyInjection\CompilerPass\ACLFlagsCompilerPass;
|
||||||
use Chill\MainBundle\DependencyInjection\CompilerPass\ExportsCompilerPass;
|
use Chill\MainBundle\DependencyInjection\CompilerPass\ExportsCompilerPass;
|
||||||
@ -59,6 +60,8 @@ class ChillMainBundle extends Bundle
|
|||||||
->addTag('chill.count_notification.user');
|
->addTag('chill.count_notification.user');
|
||||||
$container->registerForAutoconfiguration(EntityWorkflowHandlerInterface::class)
|
$container->registerForAutoconfiguration(EntityWorkflowHandlerInterface::class)
|
||||||
->addTag('chill_main.workflow_handler');
|
->addTag('chill_main.workflow_handler');
|
||||||
|
$container->registerForAutoconfiguration(CronJobInterface::class)
|
||||||
|
->addTag('chill_main.cron_job');
|
||||||
|
|
||||||
$container->addCompilerPass(new SearchableServicesCompilerPass());
|
$container->addCompilerPass(new SearchableServicesCompilerPass());
|
||||||
$container->addCompilerPass(new ConfigConsistencyCompilerPass());
|
$container->addCompilerPass(new ConfigConsistencyCompilerPass());
|
||||||
|
@ -106,3 +106,15 @@ services:
|
|||||||
resource: '../Service/'
|
resource: '../Service/'
|
||||||
autowire: true
|
autowire: true
|
||||||
autoconfigure: true
|
autoconfigure: true
|
||||||
|
|
||||||
|
Chill\MainBundle\Cron\:
|
||||||
|
resource: '../Cron'
|
||||||
|
autowire: true
|
||||||
|
autoconfigure: true
|
||||||
|
|
||||||
|
Chill\MainBundle\Cron\CronManager:
|
||||||
|
autoconfigure: true
|
||||||
|
autowire: true
|
||||||
|
lazy: true
|
||||||
|
arguments:
|
||||||
|
$jobs: !tagged_iterator chill_main.cron_job
|
||||||
|
@ -61,3 +61,9 @@ services:
|
|||||||
autowire: true
|
autowire: true
|
||||||
tags:
|
tags:
|
||||||
- { name: console.command }
|
- { name: console.command }
|
||||||
|
|
||||||
|
Chill\MainBundle\Command\ExecuteCronJobCommand:
|
||||||
|
autoconfigure: true
|
||||||
|
autowire: true
|
||||||
|
tags:
|
||||||
|
- {name: console.command }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user