PHP Class Webiny\Component\Annotations\Bridge\Loader

Inheritance: use trait Webiny\Component\StdLib\FactoryLoaderTrait, use trait Webiny\Component\StdLib\StdLibTrait
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
getInstance ( ) : Webiny\Component\Annotations\Bridge\AnnotationsInterface Create an instance of a annotations driver.
getLibrary ( ) : string Get the name of bridge library which will be used as the driver.
setLibrary ( string $pathToClass ) Change the default library used for the driver.

Method Details

getInstance() public static method

Create an instance of a annotations driver.
public static getInstance ( ) : Webiny\Component\Annotations\Bridge\AnnotationsInterface
return Webiny\Component\Annotations\Bridge\AnnotationsInterface

getLibrary() public static method

Get the name of bridge library which will be used as the driver.
public static getLibrary ( ) : string
return string

setLibrary() public static method

Change the default library used for the driver.
public static setLibrary ( string $pathToClass )
$pathToClass string Path to the new bridge class. The class must implement \Webiny\Component\Annotations\Bridge\AnnotationsInterface.