public function getRenderer()
    {
        // Attempt to retrieve the renderer config
        $config = new Config($this->configDirectory);
        $rendererClass = $config->getRenderer();
        // Validate Renderer Class
        $reflection = new ReflectionClass($rendererClass);
        // Ensure class is built with the correct interface
        if (false === $reflection->implementsInterface('Signalert\Renderer\RendererInterface')) {
            throw new SignalertResolverException;
        }
        // If it all checks out, resolve the class and instantiate
        return $reflection->newInstance();
    }
public function getRenderer()
    {
        // Attempt to retrieve the renderer config
        $config = new Config($this->configDirectory);
        $rendererClass = $config->getRenderer();
        // Validate Renderer Class
        $reflection = new ReflectionClass($rendererClass);
        // Ensure class is built with the correct interface
        if (false === $reflection->implementsInterface('Signalert\Renderer\RendererInterface')) {
            throw new SignalertResolverException;
        }
        // If it all checks out, resolve the class and instantiate
        return $reflection->newInstance();
    }
public function getRenderer ( ) { // Attempt to retrieve the renderer config $ config = new Config ( $ this -> configDirectory ) ; $ rendererClass = $ config -> getRenderer ( ) ; // Validate Renderer Class $ reflection = new ReflectionClass ( $ rendererClass ) ; // Ensure class is built with the correct interface if ( false === $ reflection -> implementsInterface ( 'Signalert\Renderer\RendererInterface' ) ) { throw new SignalertResolverException ; } // If it all checks out, resolve the class and instantiate return $ reflection -> newInstance ( ) ; }
Returns a valid renderer class

@return RendererInterface
@throws Exception\SignalertInvalidRendererException
@throws SignalertResolverException
Returns a valid renderer class