Jackalope\Repository::__construct PHP Метод

__construct() публичный Метод

Use RepositoryFactoryDoctrineDBAL or RepositoryFactoryJackrabbit to instantiate this class.
public __construct ( jackalope\FactoryInterface $factory = null, Jackalope\Transport\TransportInterface $transport, array $options = null )
$factory jackalope\FactoryInterface the object factory to use. If this is null, the \Jackalope\Factory is instantiated. Note that the repository is the only class accepting null as factory.
$transport Jackalope\Transport\TransportInterface transport implementation
$options array defines optional features to enable/disable (see $options property)
    public function __construct(FactoryInterface $factory = null, TransportInterface $transport, array $options = null)
    {
        $this->factory = null === $factory ? new Factory() : $factory;
        $this->transport = $transport;
        $this->options = array_merge($this->options, (array) $options);
        $this->options['transactions'] = $this->options['transactions'] && $transport instanceof TransactionInterface;
        // register a stream wrapper to lazily load binary property values
        if (null === self::$binaryStreamWrapperRegistered) {
            self::$binaryStreamWrapperRegistered = $this->options['stream_wrapper'];
            if (self::$binaryStreamWrapperRegistered) {
                stream_wrapper_register('jackalope', 'Jackalope\\BinaryStreamWrapper');
            }
        }
    }