AppserverIo\Appserver\Core\Api\Node\AnnotationRegistryNodeInterface::getDirectoriesAsArray PHP Method

getDirectoriesAsArray() public method

Returns an array with the directories as string value, each prepended with the passed value.
public getDirectoriesAsArray ( string $prepend = null ) : The
$prepend string Prepend to each directory
return The array with the directories as string
    public function getDirectoriesAsArray($prepend = null);

Usage Example

コード例 #1
0
 /**
  * Register's the annotation driver for the passed configuration.
  *
  * @param \AppserverIo\Appserver\Core\Api\Node\AnnotationRegistryNodeInterface $annotationRegistry The configuration node
  *
  * @return void
  */
 public function register(AnnotationRegistryNodeInterface $annotationRegistry)
 {
     // initialize the composer class loader
     $classLoader = new ClassLoader();
     $classLoader->addPsr4($annotationRegistry->getNamespace(), $annotationRegistry->getDirectoriesAsArray());
     // register the class loader to load annotations
     AnnotationRegistry::registerLoader(array($classLoader, 'loadClass'));
 }
All Usage Examples Of AppserverIo\Appserver\Core\Api\Node\AnnotationRegistryNodeInterface::getDirectoriesAsArray