src/Slashworks/BackendBundle/Controller/InstallController.php
public function requirementsAction()
        {

            // include symfony requirements class
            $sAppPath = $this->getParameter('kernel.root_dir');
            require_once $sAppPath.'/SymfonyRequirements.php';
            $symfonyRequirements = new \SymfonyRequirements();

            // add additional requirement for mcrypt
            $symfonyRequirements->addRequirement(extension_loaded('mcrypt'), "Check if mcrypt ist loaded for RSA encryption", "Please enable mcrypt-Extension. See <a href='http://php.net/manual/de/mcrypt.setup.php'>http://php.net/manual/de/mcrypt.setup.php</a>");

            // fetch all data
            $aRequirements          = $symfonyRequirements->getRequirements();
            $aRecommendations       = $symfonyRequirements->getRecommendations();
            $aFailedRequirements    = $symfonyRequirements->getFailedRequirements();
            $aFailedRecommendations = $symfonyRequirements->getFailedRecommendations();
            $iniPath                = $symfonyRequirements->getPhpIniConfigPath();

            // render template
            return $this->render('SlashworksBackendBundle:Install:requirements.html.twig', array("iniPath" => $iniPath, "requirements" => $aRequirements, "recommendations" => $aRecommendations, "failedrequirements" => $aFailedRequirements, "failedrecommendations" => $aFailedRecommendations));
        }
public function requirementsAction()
        {

            // include symfony requirements class
            $sAppPath = $this->getParameter('kernel.root_dir');
            require_once $sAppPath.'/SymfonyRequirements.php';
            $symfonyRequirements = new \SymfonyRequirements();

            // add additional requirement for mcrypt
            $symfonyRequirements->addRequirement(extension_loaded('mcrypt'), "Check if mcrypt ist loaded for RSA encryption", "Please enable mcrypt-Extension. See <a href='http://php.net/manual/de/mcrypt.setup.php'>http://php.net/manual/de/mcrypt.setup.php</a>");

            // fetch all data
            $aRequirements          = $symfonyRequirements->getRequirements();
            $aRecommendations       = $symfonyRequirements->getRecommendations();
            $aFailedRequirements    = $symfonyRequirements->getFailedRequirements();
            $aFailedRecommendations = $symfonyRequirements->getFailedRecommendations();
            $iniPath                = $symfonyRequirements->getPhpIniConfigPath();

            // render template
            return $this->render('SlashworksBackendBundle:Install:requirements.html.twig', array("iniPath" => $iniPath, "requirements" => $aRequirements, "recommendations" => $aRecommendations, "failedrequirements" => $aFailedRequirements, "failedrecommendations" => $aFailedRecommendations));
        }
public function requirementsAction ( ) { // include symfony requirements class $ sAppPath = $ this -> getParameter ( 'kernel.root_dir' ) ; require_once $ sAppPath . '/SymfonyRequirements.php' ; $ symfonyRequirements = new \ SymfonyRequirements ( ) ; // add additional requirement for mcrypt $ symfonyRequirements -> addRequirement ( extension_loaded ( 'mcrypt' ) , "Check if mcrypt ist loaded for RSA encryption" , "Please enable mcrypt-Extension. See <a href='http://php.net/manual/de/mcrypt.setup.php'>http://php.net/manual/de/mcrypt.setup.php</a>" ) ; // fetch all data $ aRequirements = $ symfonyRequirements -> getRequirements ( ) ; $ aRecommendations = $ symfonyRequirements -> getRecommendations ( ) ; $ aFailedRequirements = $ symfonyRequirements -> getFailedRequirements ( ) ; $ aFailedRecommendations = $ symfonyRequirements -> getFailedRecommendations ( ) ; $ iniPath = $ symfonyRequirements -> getPhpIniConfigPath ( ) ; // render template return $ this -> render ( 'SlashworksBackendBundle:Install:requirements.html.twig' , array ( "iniPath" => $ iniPath , "requirements" => $ aRequirements , "recommendations" => $ aRecommendations , "failedrequirements" => $ aFailedRequirements , "failedrecommendations" => $ aFailedRecommendations ) ) ; }
Check System Requirements

@return \Symfony\Component\HttpFoundation\Response
Check System Requirements