GearmanBundle.php
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")
        );
    }
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")
        );
    }
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" ) ) ; }
Boots the Bundle.
Boots the Bundle .