Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function getConstructor(array &$data, $class, array &$context, \ReflectionClass $reflectionClass, $allowedAttributes)
 {
     if (is_a($class, StaticConstructorDummy::class, true)) {
         return new \ReflectionMethod($class, 'create');
     }
     return parent::getConstructor($data, $class, $context, $reflectionClass, $allowedAttributes);
 }