private function getResourcePathFromClassName($class)
    {
        $reflection = new \ReflectionClass($class);

        if (is_dir($dir = dirname($reflection->getFileName()).'/Resources/contao')) {
            return $dir;
        }

        return null;
    }
private function getResourcePathFromClassName($class)
    {
        $reflection = new \ReflectionClass($class);

        if (is_dir($dir = dirname($reflection->getFileName()).'/Resources/contao')) {
            return $dir;
        }

        return null;
    }
private function getResourcePathFromClassName ( $ class ) { $ reflection = new \ ReflectionClass ( $ class ) ; if ( is_dir ( $ dir = dirname ( $ reflection -> getFileName ( ) ) . '/Resources/contao' ) ) { return $ dir ; } return null ; }
Returns the resources path from the class name.

@param string $class The class name of the bundle.

@return string|null
Returns the resources path from the class name .