Esempio n. 1
0
 public function parseFile(\Phalcon\Annotations\Adapter $adapter, $className, $module)
 {
     $parser = new AnnotationParser($adapter->get($className));
     if ($parser->isExistsAnnotationClass(self::CONTROLER_ANNOTATION)) {
         $this->routers->add(new ModelRoute($parser, $className, $module));
     }
 }
Esempio n. 2
0
 public function parseFile(Annotations $adapter, $className, $module)
 {
     $parser = new AnnotationParser($adapter->get($className));
     if ($parser->isExistsAnnotationClass(self::CLASS_ANNOTATION)) {
         $this->tasks->add(new ModelTask($parser, $className));
     }
 }
Esempio n. 3
0
 public function parseFile(\Phalcon\Annotations\Adapter $adapter, $className, $module)
 {
     $parser = new AnnotationParser($adapter->get($className));
     if ($parser->isExistsAnnotationClass(Service::CLASS_ANNOTATION)) {
         $this->listeners->add(new ModelListener($parser, $className));
     }
 }
Esempio n. 4
0
 public function parseFile(Annotations $adapter, $className, $module)
 {
     $parser = new AnnotationParser($adapter->get($className));
     if ($parser->isExistsAnnotationClass(self::CLASS_ANNOTATION)) {
         $this->services->add(new ModelService($parser, $className, function ($className) {
             return $this->getServiceName($className);
         }, function ($value) {
             return $this->getValue($value);
         }));
     }
 }