public static function fromBundle(Bundle $bundle): Descriptor
    {
        // Values from bundle
        $name = $bundle->getName();
        $rootNamespace = $bundle->getNamespace();
        $path = $bundle->getPath();

        // Default values, not provided by bundle directly
        $configurationRootName = '';

        return new static($name, $configurationRootName, $rootNamespace, $path);
    }
public static function fromBundle(Bundle $bundle): Descriptor
    {
        // Values from bundle
        $name = $bundle->getName();
        $rootNamespace = $bundle->getNamespace();
        $path = $bundle->getPath();

        // Default values, not provided by bundle directly
        $configurationRootName = '';

        return new static($name, $configurationRootName, $rootNamespace, $path);
    }
public static function fromBundle ( Bundle $ bundle ) : Descriptor { // Values from bundle $ name = $ bundle -> getName ( ) ; $ rootNamespace = $ bundle -> getNamespace ( ) ; $ path = $ bundle -> getPath ( ) ; // Default values, not provided by bundle directly $ configurationRootName = '' ; return new static ( $ name , $ configurationRootName , $ rootNamespace , $ path ) ; }
Creates and returns descriptor of given bundle

@param Bundle $bundle The bundle
@return Descriptor
Creates and returns descriptor of given bundle