public function itemsCommand($format = 'json', $packageKey = null)
    {
        $sitePackageKey = $packageKey ?: $this->getDefaultSitePackageKey();

        $fusionAst = $this->fusionService->getMergedFusionObjectTreeForSitePackage($sitePackageKey);
        $styleguideObjects = $this->fusionService->getStyleguideObjectsFromFusionAst($fusionAst);

        $this->outputData($styleguideObjects, $format);
    }
public function itemsCommand($format = 'json', $packageKey = null)
    {
        $sitePackageKey = $packageKey ?: $this->getDefaultSitePackageKey();

        $fusionAst = $this->fusionService->getMergedFusionObjectTreeForSitePackage($sitePackageKey);
        $styleguideObjects = $this->fusionService->getStyleguideObjectsFromFusionAst($fusionAst);

        $this->outputData($styleguideObjects, $format);
    }
public function itemsCommand ( $ format = 'json' , $ packageKey = null ) { $ sitePackageKey = $ packageKey ? : $ this -> getDefaultSitePackageKey ( ) ; $ fusionAst = $ this -> fusionService -> getMergedFusionObjectTreeForSitePackage ( $ sitePackageKey ) ; $ styleguideObjects = $ this -> fusionService -> getStyleguideObjectsFromFusionAst ( $ fusionAst ) ; $ this -> outputData ( $ styleguideObjects , $ format ) ; }
Get all styleguide items currently available

@param string $format Result encoding ``yaml`` and ``json`` are supported
@param string $packageKey site-package (defaults to first found)
Get all styleguide items currently available