Skip to content
This repository
Browse code

ZF-10650: Updated all bin/ scripts' autoloader usages

- Updated to use StandardAutoloader in zfals.php
- Updated autoload examples to refer to .classmap.php instead of _autoload.php
  • Loading branch information...
commit eab736fd840fd9e8bf9d961753f7f036234c8a90 1 parent bf40461
Matthew Weier O'Phinney weierophinney authored
2  bin/autoload_example.php
... ... @@ -1,7 +1,7 @@
1 1 <?php
2 2 require_once __DIR__ . '/../library/Zend/Loader/ClassMapAutoloader.php';
3 3 $loader = new Zend\Loader\ClassMapAutoloader();
4   -$loader->registerAutoloadMap(__DIR__ . '/../library/Zend/Controller/_autoload.php');
  4 +$loader->registerAutoloadMap(__DIR__ . '/../library/Zend/Controller/.classmap.php');
5 5 $loader->register();
6 6
7 7 if (!class_exists('Zend\Controller\Action')) {
2  bin/autoload_examples.php
... ... @@ -1,5 +1,5 @@
1 1 <?php
2   -require_once __DIR__ . '/../library/Zend/_autoload.php';
  2 +require_once __DIR__ . '/../library/Zend/.classmap.php';
3 3 if (!class_exists('Zend\Controller\Action')) {
4 4 echo "Could not find action class?\n";
5 5 } else {
5 bin/zfals.php
@@ -13,8 +13,9 @@
13 13 }
14 14
15 15 // Setup autoloading
16   -require_once 'Zend/Loader/Autoloader.php';
17   -Zend\Loader\Autoloader::getInstance();
  16 +$loader = new Zend\Loader\StandardAutoloader();
  17 +require_once 'Zend/Loader/StandardAutoloader.php';
  18 +$loader->register();
18 19
19 20 $rules = array(
20 21 'help|h' => 'Get usage message',

0 comments on commit eab736f

Please sign in to comment.
Something went wrong with that request. Please try again.