Contao\CoreBundle\Config\Loader\PhpFileLoader::supports PHP Метод

supports() публичный Метод

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

Usage Example

Пример #1
0
 /**
  * Tests the supports() method.
  */
 public function testSupports()
 {
     $this->assertTrue($this->loader->supports($this->getRootDir() . '/vendor/contao/test-bundle/Resources/contao/config/config.php'));
     $this->assertFalse($this->loader->supports($this->getRootDir() . '/vendor/contao/test-bundle/Resources/contao/languages/en/default.xlf'));
 }
PhpFileLoader