GraphAware\Neo4j\OGM\Mapping\AnnotationDriver::__construct PHP Method

__construct() public method

public __construct ( $cacheDirectory = null )
    public function __construct($cacheDirectory = null)
    {
        $cacheDir = $cacheDirectory ?: sys_get_temp_dir();
        AnnotationRegistry::registerFile(__DIR__ . '/Neo4jOGMAnnotations.php');
        $reader = new AnnotationReader();
        $this->reader = new FileCacheReader($reader, $cacheDir, $debug = true);
    }