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;
}