code/object/bootstrapper/bootstrapper.php
public function getComponentManifest($name, $domain = null)
    {
        $result = false;
        $paths  = $this->getComponentPaths($name, $domain);

        if(!empty($paths))
        {
            $path = $paths[0];

            if(!isset($this->_manifests[$path]) || is_array($this->_manifests[$path]))
            {
                if($paths = $this->getComponentPaths($name, $domain))
                {
                    $info = $this->getObject('object.config.factory')->fromFile($path . '/component.json');
                    $this->_manifests[$path] = $info;
                }
                else $this->_manifests[$path] = false;
            }

            $result = $this->_manifests[$path];
        }

        return $result;
    }
public function getComponentManifest($name, $domain = null)
    {
        $result = false;
        $paths  = $this->getComponentPaths($name, $domain);

        if(!empty($paths))
        {
            $path = $paths[0];

            if(!isset($this->_manifests[$path]) || is_array($this->_manifests[$path]))
            {
                if($paths = $this->getComponentPaths($name, $domain))
                {
                    $info = $this->getObject('object.config.factory')->fromFile($path . '/component.json');
                    $this->_manifests[$path] = $info;
                }
                else $this->_manifests[$path] = false;
            }

            $result = $this->_manifests[$path];
        }

        return $result;
    }
public function getComponentManifest ( $ name , $ domain = null ) { $ result = false ; $ paths = $ this -> getComponentPaths ( $ name , $ domain ) ; if ( ! empty ( $ paths ) ) { $ path = $ paths [ 0 ] ; if ( ! isset ( $ this -> _manifests [ $ path ] ) || is_array ( $ this -> _manifests [ $ path ] ) ) { if ( $ paths = $ this -> getComponentPaths ( $ name , $ domain ) ) { $ info = $ this -> getObject ( 'object.config.factory' ) -> fromFile ( $ path . '/component.json' ) ; $ this -> _manifests [ $ path ] = $ info ; } else $ this -> _manifests [ $ path ] = false ; } $ result = $ this -> _manifests [ $ path ] ; } return $ result ; }
Get manifest for a registered component

@link https://en.wikipedia.org/wiki/Manifest_file

@param string $name    The component name
@param string $domain  The component domain. Domain is optional and can be NULL
@return ObjectConfigJson|false Returns the component manifest or FALSE if the component couldn't be found.
Get manifest for a registered component