src/Yggdrasil/Core/Driver/DriverAccessorTrait.php
protected function getRouter(): RouterDriver
    {
        if (!$this->drivers->get('router') instanceof RouterDriver) {
            throw new DriverNotSupportedException('Provided router driver is not supported.');
        }

        return $this->drivers->get('router');
    }
protected function getRouter(): RouterDriver
    {
        if (!$this->drivers->get('router') instanceof RouterDriver) {
            throw new DriverNotSupportedException('Provided router driver is not supported.');
        }

        return $this->drivers->get('router');
    }
protected function getRouter ( ) : RouterDriver { if ( ! $ this -> drivers -> get ( 'router' ) instanceof RouterDriver ) { throw new DriverNotSupportedException ( 'Provided router driver is not supported.' ) ; } return $ this -> drivers -> get ( 'router' ) ; }
Returns router driver instance

@return RouterDriver
@throws DriverNotSupportedException
Returns router driver instance