src/Slashworks/AppBundle/Controller/AboutController.php
public function aboutAction()
        {


            $oLicense = LicenseQuery::create()->findOne();


            // include symfony requirements class
            require_once dirname(__FILE__) . '/../../../../app/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();


            $sVersion  = file_get_contents(dirname(__FILE__) . '/../../../../version.txt');


            return $this->render('SlashworksAppBundle:About:about.html.twig', array(
                "license" => $oLicense,"version" => $sVersion, "iniPath" => $iniPath, "requirements" => $aRequirements, "recommendations" => $aRecommendations, "failedrequirements" => $aFailedRequirements, "failedrecommendations" => $aFailedRecommendations
            ));
        }
public function aboutAction()
        {


            $oLicense = LicenseQuery::create()->findOne();


            // include symfony requirements class
            require_once dirname(__FILE__) . '/../../../../app/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();


            $sVersion  = file_get_contents(dirname(__FILE__) . '/../../../../version.txt');


            return $this->render('SlashworksAppBundle:About:about.html.twig', array(
                "license" => $oLicense,"version" => $sVersion, "iniPath" => $iniPath, "requirements" => $aRequirements, "recommendations" => $aRecommendations, "failedrequirements" => $aFailedRequirements, "failedrecommendations" => $aFailedRecommendations
            ));
        }
public function aboutAction ( ) { $ oLicense = LicenseQuery :: create ( ) -> findOne ( ) ; // include symfony requirements class require_once dirname ( __FILE__ ) . '/../../../../app/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 ( ) ; $ sVersion = file_get_contents ( dirname ( __FILE__ ) . '/../../../../version.txt' ) ; return $ this -> render ( 'SlashworksAppBundle:About:about.html.twig' , array ( "license" => $ oLicense , "version" => $ sVersion , "iniPath" => $ iniPath , "requirements" => $ aRequirements , "recommendations" => $ aRecommendations , "failedrequirements" => $ aFailedRequirements , "failedrecommendations" => $ aFailedRecommendations ) ) ; }
Display form for license activation

@return \Symfony\Component\HttpFoundation\Response
Display form for license activation