public function getDriver()
    {
        if ($this->driver) {
            return $this->driver;
        }

        // Get driver configuration
        $config = $this->getConfig('drivers.' . $this->getConfig('driver'), []);

        // Get driver class
        $driver = Arr::pull($config, 'class');

        // Create driver instance
        return $this->driver = new $driver($config, $this->locale);
    }
public function getDriver()
    {
        if ($this->driver) {
            return $this->driver;
        }

        // Get driver configuration
        $config = $this->getConfig('drivers.' . $this->getConfig('driver'), []);

        // Get driver class
        $driver = Arr::pull($config, 'class');

        // Create driver instance
        return $this->driver = new $driver($config, $this->locale);
    }
public function getDriver ( ) { if ( $ this -> driver ) { return $ this -> driver ; } // Get driver configuration $ config = $ this -> getConfig ( 'drivers.' . $ this -> getConfig ( 'driver' ) , [ ] ) ; // Get driver class $ driver = Arr :: pull ( $ config , 'class' ) ; // Create driver instance return $ this -> driver = new $ driver ( $ config , $ this -> locale ) ; }
Get moderation driver.

@return Drivers\AbstractDriver
Get moderation driver .