summaryrefslogtreecommitdiffstats
path: root/php-zendframework-zendservice-recaptcha-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-08-06 18:29:32 +0200
committerRemi Collet <fedora@famillecollet.com>2015-08-06 18:29:32 +0200
commit73f2a2c14974c17d7e994a7170c5810692f78252 (patch)
treeee0f8da2855c2bced48782d601f5d17644c7e89c /php-zendframework-zendservice-recaptcha-autoload.php
php-zendframework-zendservice-recaptcha: try... broken.. probably dead
Diffstat (limited to 'php-zendframework-zendservice-recaptcha-autoload.php')
-rw-r--r--php-zendframework-zendservice-recaptcha-autoload.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/php-zendframework-zendservice-recaptcha-autoload.php b/php-zendframework-zendservice-recaptcha-autoload.php
new file mode 100644
index 0000000..a0a7585
--- /dev/null
+++ b/php-zendframework-zendservice-recaptcha-autoload.php
@@ -0,0 +1,16 @@
+<?php
+/*
+Simple autoloader for Zend Framework + ZendService components
+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(
+ 'ZendService' => dirname(__DIR__)
+))));