public function examplesAction()
    {
        $kernelRootDir = $this->container->getParameter('kernel.root_dir');
        
        $propablyPhpPdfExamplesFilePaths = array($kernelRootDir.'/../vendor/PHPPdf/examples/index.php', $kernelRootDir.'/../vendor/psliwa/php-pdf/examples/index.php');

        foreach($propablyPhpPdfExamplesFilePaths as $propablyPhpPdfExamplesFilePath)
        {
            if(file_exists($propablyPhpPdfExamplesFilePath))
            {
                require $propablyPhpPdfExamplesFilePath;
                exit();
            }
        }

        throw new NotFoundHttpException('File with PHPPdf examples not found.');
    }
public function examplesAction()
    {
        $kernelRootDir = $this->container->getParameter('kernel.root_dir');
        
        $propablyPhpPdfExamplesFilePaths = array($kernelRootDir.'/../vendor/PHPPdf/examples/index.php', $kernelRootDir.'/../vendor/psliwa/php-pdf/examples/index.php');

        foreach($propablyPhpPdfExamplesFilePaths as $propablyPhpPdfExamplesFilePath)
        {
            if(file_exists($propablyPhpPdfExamplesFilePath))
            {
                require $propablyPhpPdfExamplesFilePath;
                exit();
            }
        }

        throw new NotFoundHttpException('File with PHPPdf examples not found.');
    }
public function examplesAction ( ) { $ kernelRootDir = $ this -> container -> getParameter ( 'kernel.root_dir' ) ; $ propablyPhpPdfExamplesFilePaths = array ( $ kernelRootDir . '/../vendor/PHPPdf/examples/index.php' , $ kernelRootDir . '/../vendor/psliwa/php-pdf/examples/index.php' ) ; foreach ( $ propablyPhpPdfExamplesFilePaths as $ propablyPhpPdfExamplesFilePath ) { if ( file_exists ( $ propablyPhpPdfExamplesFilePath ) ) { require $ propablyPhpPdfExamplesFilePath ; exit ( ) ; } } throw new NotFoundHttpException ( 'File with PHPPdf examples not found.' ) ; }
Standard examples of PHPPdf library
Standard examples of PHPPdf library