src/Framework/BaseConsoleApplication.php
protected function configurePdo()
    {
        if (!isset($this['parameters']['pdo'])) {
            return;
        }

        $connector = new Connector();
        $this->pdo = $connector->getPdo(
            $connector->getConfig($this['parameters']['pdo'])
        );

        $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        $this['pdo'] = $this->pdo;
    }
protected function configurePdo()
    {
        if (!isset($this['parameters']['pdo'])) {
            return;
        }

        $connector = new Connector();
        $this->pdo = $connector->getPdo(
            $connector->getConfig($this['parameters']['pdo'])
        );

        $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        $this['pdo'] = $this->pdo;
    }
protected function configurePdo ( ) { if ( ! isset ( $ this [ 'parameters' ] [ 'pdo' ] ) ) { return ; } $ connector = new Connector ( ) ; $ this -> pdo = $ connector -> getPdo ( $ connector -> getConfig ( $ this [ 'parameters' ] [ 'pdo' ] ) ) ; $ this -> pdo -> setAttribute ( PDO :: ATTR_ERRMODE , PDO :: ERRMODE_EXCEPTION ) ; $ this [ 'pdo' ] = $ this -> pdo ; }
Configure PDO.
Configure PDO .