public function buildCache()
    {
        if (!empty($this->viewDirectories) || !empty($this->configDirectories) || !empty($this->resourceDirectories)) {
            return;
        }

        foreach ($this->orderReference as $namespace)
        {
            /**
             * @var \Slab\Components\BundleInterface $bundle
             */
            $bundle =& $this->bundleReference[$namespace];

            $this->viewDirectories[] = $bundle->getViewDirectory();
            $this->configDirectories[] = $bundle->getConfigDirectory();
            $this->resourceDirectories[] = $bundle->getResourceDirectory();
        }
    }
public function buildCache()
    {
        if (!empty($this->viewDirectories) || !empty($this->configDirectories) || !empty($this->resourceDirectories)) {
            return;
        }

        foreach ($this->orderReference as $namespace)
        {
            /**
             * @var \Slab\Components\BundleInterface $bundle
             */
            $bundle =& $this->bundleReference[$namespace];

            $this->viewDirectories[] = $bundle->getViewDirectory();
            $this->configDirectories[] = $bundle->getConfigDirectory();
            $this->resourceDirectories[] = $bundle->getResourceDirectory();
        }
    }
public function buildCache ( ) { if ( ! empty ( $ this -> viewDirectories ) || ! empty ( $ this -> configDirectories ) || ! empty ( $ this -> resourceDirectories ) ) { return ; } foreach ( $ this -> orderReference as $ namespace ) { /**
             * @var \Slab\Components\BundleInterface $bundle
             */ $ bundle = & $ this -> bundleReference [ $ namespace ] ; $ this -> viewDirectories [ ] = $ bundle -> getViewDirectory ( ) ; $ this -> configDirectories [ ] = $ bundle -> getConfigDirectory ( ) ; $ this -> resourceDirectories [ ] = $ bundle -> getResourceDirectory ( ) ; } }
Build directory cache, so we only do it once
Build directory cache so we only do it once