getId() публичный статический Метод

Returns the name of registered filter
public static getId ( ) : string
Результат string
Пример #1
0
 protected function registerTransformers()
 {
     $sourceTransformers = array(new FilterInjectorTransformer($this->options, SourceTransformingLoader::getId()), new BeforeMockTransformer($this, new TokenReflection\Broker(new TokenReflection\Broker\Backend\Memory()), $this->container->get('aspect.advice_matcher')));
     return array(new CachingTransformer($this, $sourceTransformers));
 }
Пример #2
0
 /**
  * Returns list of source transformers, that will be applied to the PHP source
  *
  * @return array|SourceTransformer[]
  */
 protected function registerTransformers()
 {
     $cacheManager = $this->getContainer()->get('aspect.cache.path.manager');
     $filterInjector = new FilterInjectorTransformer($this, SourceTransformingLoader::getId(), $cacheManager);
     $magicTransformer = new MagicConstantTransformer($this);
     $aspectKernel = $this;
     $sourceTransformers = function () use($filterInjector, $magicTransformer, $aspectKernel, $cacheManager) {
         $transformers = [];
         $aspectContainer = $aspectKernel->getContainer();
         $transformers[] = new WeavingTransformer($aspectKernel, $aspectContainer->get('aspect.advice_matcher'), $cacheManager, $aspectContainer->get('aspect.cached.loader'));
         if ($aspectKernel->hasFeature(Features::INTERCEPT_INCLUDES)) {
             $transformers[] = $filterInjector;
         }
         $transformers[] = $magicTransformer;
         if ($aspectKernel->hasFeature(Features::INTERCEPT_INITIALIZATIONS)) {
             $transformers[] = new ConstructorExecutionTransformer();
         }
         return $transformers;
     };
     return array(new CachingTransformer($this, $sourceTransformers, $cacheManager));
 }
Пример #3
0
 /**
  * Returns list of source transformers, that will be applied to the PHP source
  *
  * @return array|SourceTransformer[]
  */
 protected function registerTransformers()
 {
     $filterInjector = new FilterInjectorTransformer($this->options, SourceTransformingLoader::getId());
     $magicTransformer = new MagicConstantTransformer($this);
     $aspectKernel = $this;
     $sourceTransformers = function () use($filterInjector, $magicTransformer, $aspectKernel) {
         $transformers = array($filterInjector, $magicTransformer, new WeavingTransformer($aspectKernel, new TokenReflection\Broker(new CleanableMemory()), $aspectKernel->getContainer()->get('aspect.advice_matcher')));
         if ($aspectKernel->hasFeature(Features::INTERCEPT_INITIALIZATIONS)) {
             $transformers[] = new ConstructorExecutionTransformer();
         }
         return $transformers;
     };
     return array(new CachingTransformer($this, $sourceTransformers));
 }
Пример #4
0
 /**
  * Returns list of source transformers, that will be applied to the PHP source
  *
  * @return array|SourceTransformer[]
  */
 protected function registerTransformers()
 {
     $filterInjector = new FilterInjectorTransformer($this->options, SourceTransformingLoader::getId());
     $magicTransformer = new MagicConstantTransformer($this);
     $aspectKernel = $this;
     $sourceTransformers = function () use($filterInjector, $magicTransformer, $aspectKernel) {
         return array($filterInjector, $magicTransformer, new WeavingTransformer($aspectKernel, new TokenReflection\Broker(new CleanableMemory()), $aspectKernel->getContainer()->get('aspect.advice_matcher')));
     };
     return array(new CachingTransformer($this, $sourceTransformers));
 }