forked from mmoreram/GearmanBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GearmanBundle.php
41 lines (35 loc) · 890 Bytes
/
GearmanBundle.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
/**
* Gearman Bundle for Symfony2
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <[email protected]>
*/
namespace Mmoreram\GearmanBundle;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Gearman Bundle
*
* @since 2.3.1
*/
class GearmanBundle extends Bundle
{
/**
* Boots the Bundle.
*/
public function boot()
{
$kernel = $this->container->get('kernel');
AnnotationRegistry::registerFile($kernel
->locateResource("@GearmanBundle/Driver/Gearman/Work.php")
);
AnnotationRegistry::registerFile($kernel
->locateResource("@GearmanBundle/Driver/Gearman/Job.php")
);
}
}