/**
  * Index action
  *
  * @return void
  * @author Christopher Hlubek <*****@*****.**>
  * @author Robert Lemke <*****@*****.**>
  * @author Bastian Waidelich <*****@*****.**>
  */
 public function indexAction()
 {
     $this->view->assign('flow3PathRoot', realpath(FLOW3_PATH_ROOT));
     $this->view->assign('flow3PathWeb', realpath(FLOW3_PATH_WEB));
     $this->view->assign('myPackageUrl', $this->uriBuilder->uriFor('index', array(), 'Standard', 'MyPackage'));
     $this->view->assign('isWindows', $this->isWindows());
     $flow3Package = $this->packageManager->getPackage('FLOW3');
     $version = $flow3Package->getPackageMetaData()->getVersion();
     $this->view->assign('version', $version);
     $activePackages = $this->packageManager->getActivePackages();
     $this->view->assign('activePackages', $activePackages);
     $this->view->assign('notDevelopmentContext', $this->objectManager->getContext() !== 'Development');
 }
Ejemplo n.º 2
0
 /**
  * Initialize the resource management component, setting up stream wrappers,
  * publishing the public resources of all found packages, ...
  *
  * @return void
  * @author Karsten Dambekalns <*****@*****.**>
  * @see initialize()
  */
 public function initializeResources()
 {
     $resourceManager = $this->objectManager->getObject('F3\\FLOW3\\Resource\\ResourceManager', $this->settings['resource']);
     $resourceManager->initialize();
     if (FLOW3_SAPITYPE === 'Web') {
         $resourceManager->publishPublicPackageResources($this->packageManager->getActivePackages());
     }
 }
 /**
  * Aggregate rendered documentation and group by package key for easy iteration
  * in the view.
  *
  * @return array The grouped documentation
  * @author Christopher Hlubek <*****@*****.**>
  */
 protected function getRenderedDocumentationsByPackages()
 {
     $activePackages = $this->packageManager->getActivePackages();
     $renderedDocumentationByPackage = array();
     foreach ($activePackages as $package) {
         $documentations = $package->getPackageDocumentations();
         foreach ($documentations as $documentation) {
             $formats = $documentation->getDocumentationFormats();
             if (isset($formats['HTML'])) {
                 if (!isset($renderedDocumentationByPackage[$package->getPackageKey()])) {
                     $renderedDocumentationByPackage[$package->getPackageKey()] = array('package' => $package, 'documentations' => array());
                 }
                 $renderedDocumentationByPackage[$package->getPackageKey()]['documentations'][] = $documentation;
             }
         }
     }
     return $renderedDocumentationByPackage;
 }