Jackalope\Transport\DoctrineDBAL\Client::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( Jackalope\FactoryInterface $factory, Doctrine\DBAL\Connection $conn )
$factory Jackalope\FactoryInterface
$conn Doctrine\DBAL\Connection
    public function __construct(FactoryInterface $factory, Connection $conn)
    {
        $this->factory = $factory;
        $this->valueConverter = $this->factory->get('PHPCR\\Util\\ValueConverter');
        $this->conn = $conn;
    }

Usage Example

 public function __construct(FactoryInterface $factory, Connection $conn, array $caches = array())
 {
     parent::__construct($factory, $conn);
     $caches['meta'] = isset($caches['meta']) ? $caches['meta'] : new ArrayCache();
     $this->caches = $caches;
     $this->keySanitizer = function ($cacheKey) {
         return str_replace(' ', '_', $cacheKey);
     };
 }
All Usage Examples Of Jackalope\Transport\DoctrineDBAL\Client::__construct