protected function getDbAdapter()
    {
        if (! $this->db) {
            try {
                $config = $this->getPackageConfig('pdo');
            } catch (IntegratedException $e) {
                throw new IntegratedException(
                    "Thank you for riding Johnny Cab. To input your destination (and use the database adapter with Selenium), " .
                    "you must specify your db connection in a integrated.json file." .
                    "\n\nSee: https://github.com/laracasts/Integrated/wiki/Configuration#database-credentials"
                );
            }

            $connection = new Connection($this->getPackageConfig('pdo'));
            $this->db = new Adapter($connection);
        }

        return $this->db;
    }
protected function getDbAdapter()
    {
        if (! $this->db) {
            try {
                $config = $this->getPackageConfig('pdo');
            } catch (IntegratedException $e) {
                throw new IntegratedException(
                    "Thank you for riding Johnny Cab. To input your destination (and use the database adapter with Selenium), " .
                    "you must specify your db connection in a integrated.json file." .
                    "\n\nSee: https://github.com/laracasts/Integrated/wiki/Configuration#database-credentials"
                );
            }

            $connection = new Connection($this->getPackageConfig('pdo'));
            $this->db = new Adapter($connection);
        }

        return $this->db;
    }
protected function getDbAdapter ( ) { if ( ! $ this -> db ) { try { $ config = $ this -> getPackageConfig ( 'pdo' ) ; } catch ( IntegratedException $ e ) { throw new IntegratedException ( "Thank you for riding Johnny Cab. To input your destination (and use the database adapter with Selenium), " . "you must specify your db connection in a integrated.json file." . "\n\nSee: https://github.com/laracasts/Integrated/wiki/Configuration#database-credentials" ) ; } $ connection = new Connection ( $ this -> getPackageConfig ( 'pdo' ) ) ; $ this -> db = new Adapter ( $ connection ) ; } return $ this -> db ; }
Get the adapter to the database.

@return Adapter
Get the adapter to the database .