예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function createDriver(array $config)
 {
     $driver = parent::createDriver($config);
     $namespace = $this->config->get($this->getConfigName() . '.namespace');
     if ($namespace !== null && $driver instanceof HierarchicalPoolInterface) {
         return $this->namespacedPool($driver, $namespace);
     }
     return $driver;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 protected function callCustomCreator(string $driver, array $options = [])
 {
     return $this->buildSession(parent::callCustomCreator($driver, $options));
 }