JamesMoss\Flywheel\Config::__construct PHP Method

__construct() public method

Constructor
public __construct ( string $path, array $options = [] )
$path string The full path to a writeable directory, with or without a trailing slash.
$options array Any other configuration options.
    public function __construct($path, array $options = array())
    {
        $path = rtrim($path, DIRECTORY_SEPARATOR);
        // Merge supplied options with the defaults
        $options = array_merge(array('formatter' => new Formatter\JSON(), 'query_class' => $this->hasAPC() ? '\\JamesMoss\\Flywheel\\CachedQuery' : '\\JamesMoss\\Flywheel\\Query', 'document_class' => '\\JamesMoss\\Flywheel\\Document'), $options);
        $this->path = $path;
        $this->options = $options;
    }