summaryrefslogtreecommitdiffstats
path: root/php-zendframework-zendpdf-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-08-06 14:48:17 +0200
committerRemi Collet <fedora@famillecollet.com>2015-08-06 14:48:17 +0200
commitd88194c13e99f83dcef26c6bf0f1e7353c686670 (patch)
treec27650fb2ef22f4e4ead56250ad98ed4db9cf6f3 /php-zendframework-zendpdf-autoload.php
php-zendframework-zendpdf: 2.0.2 (new package)
Diffstat (limited to 'php-zendframework-zendpdf-autoload.php')
-rw-r--r--php-zendframework-zendpdf-autoload.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/php-zendframework-zendpdf-autoload.php b/php-zendframework-zendpdf-autoload.php
new file mode 100644
index 0000000..e895002
--- /dev/null
+++ b/php-zendframework-zendpdf-autoload.php
@@ -0,0 +1,16 @@
+<?php
+/*
+Simple autoloader for Zend Framework + ZendPdf component
+Inspired from https://github.com/zendframework/ZendSkeletonApplication
+
+Set autoregister_zf for Zend Framework
+Set fallback_autoloader for dependencies which are PSR-0 compliant
+*/
+require_once '/usr/share/php/Zend//Loader/AutoloaderFactory.php';
+Zend\Loader\AutoloaderFactory::factory(array(
+ 'Zend\Loader\StandardAutoloader' => array(
+ 'fallback_autoloader' => true,
+ 'autoregister_zf' => true,
+ 'namespaces' => array(
+ 'ZendPdf' => __DIR__
+))));