Contao\CoreBundle\Routing\FrontendLoader::supports PHP Method

supports() public method

public supports ( $resource, $type = null )
    public function supports($resource, $type = null)
    {
        return 'contao_frontend' === $type;
    }

Usage Example

 /**
  * Tests the supports() method.
  */
 public function testSupports()
 {
     $loader = new FrontendLoader(false);
     $this->assertTrue($loader->supports('.', 'contao_frontend'));
 }