public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     // Add version check to prevent fatals
     if (PHP_VERSION_ID >= 50600) {
         self::$invocationClass = MethodInvocationComposer::compose(false, true, true, false);
     }
 }
コード例 #2
0
ファイル: ClassProxy.php プロジェクト: alexrodrigue/framework
 /**
  * Initialize static mappings to reduce the time for checking features
  *
  * @param bool $useClosureBinding Enables usage of closures instead of reflection
  * @param bool $useSplatOperator Enables usage of optimized invocation with splat operator
  */
 protected static function setMappings($useClosureBinding, $useSplatOperator)
 {
     $dynamicMethodClass = MethodInvocationComposer::compose(false, $useClosureBinding, $useSplatOperator, false);
     $staticMethodClass = MethodInvocationComposer::compose(true, $useClosureBinding, $useSplatOperator, false);
     // We are using LSB here and overridden static property
     static::$invocationClassMap = array(AspectContainer::METHOD_PREFIX => $dynamicMethodClass, AspectContainer::STATIC_METHOD_PREFIX => $staticMethodClass, AspectContainer::PROPERTY_PREFIX => 'Go\\Aop\\Framework\\ClassFieldAccess', AspectContainer::STATIC_INIT_PREFIX => 'Go\\Aop\\Framework\\StaticInitializationJoinpoint', AspectContainer::INIT_PREFIX => 'Go\\Aop\\Framework\\ReflectionConstructorInvocation');
 }
コード例 #3
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$invocationClass = MethodInvocationComposer::compose(false, true, false, false);
 }