protected function loadDatabase()
    {
        $this->hook->trigger(self::HOOK_INIT_DATABASE_BEFORE);

        $database = \Parable\DI\Container::get(\Parable\ORM\Database::class);
        $database->setConfig($this->config->get('parable.database'));

        $this->hook->trigger(self::HOOK_INIT_DATABASE_AFTER);
        return $this;
    }
protected function loadDatabase()
    {
        $this->hook->trigger(self::HOOK_INIT_DATABASE_BEFORE);

        $database = \Parable\DI\Container::get(\Parable\ORM\Database::class);
        $database->setConfig($this->config->get('parable.database'));

        $this->hook->trigger(self::HOOK_INIT_DATABASE_AFTER);
        return $this;
    }
protected function loadDatabase ( ) { $ this -> hook -> trigger ( self :: HOOK_INIT_DATABASE_BEFORE ) ; $ database = \ Parable \ DI \ Container :: get ( \ Parable \ ORM \ Database :: class ) ; $ database -> setConfig ( $ this -> config -> get ( 'parable.database' ) ) ; $ this -> hook -> trigger ( self :: HOOK_INIT_DATABASE_AFTER ) ; return $ this ; }
Initialize the database instance with data from the config.

@return $this
Initialize the database instance with data from the config .