forked from vmari/CronBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCronBundle.php
41 lines (35 loc) · 878 Bytes
/
CronBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* This file is part of Cron Bundle.
*
* @category bundle
*
* @author Valentín Mari <https://github.com/vmari>
* @author Pedro Pelaez <[email protected]>
*
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html GPL v2
*
* @link https://github.com/vmari/CronBundle
*/
namespace VM\Cron;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use VM\Cron\DependencyInjection\Compiler\ServiceCronJobCompilerPass;
/**
* Cron bundle.
*/
class CronBundle extends Bundle
{
/**
* Add custom compiler pass.
*
* @param ContainerBuilder $container
*
* @return void
*/
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->addCompilerPass(new ServiceCronJobCompilerPass());
}
}