X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=README.md;h=4e7d164a04e08d763312f778a998beb5f5b9d2f0;hb=a9e4be85419d45c13a96d9939d5df4c30dfa8cd5;hp=c1ee4c4a9ba9954d9d3e6a32baf2a83ea35686e8;hpb=92e5718066bb689ff9fd44f07a4d1b8d8bf24544;p=zf2.biz%2Fapplication_blanche.git diff --git a/README.md b/README.md index c1ee4c4..4e7d164 100644 --- a/README.md +++ b/README.md @@ -23,39 +23,11 @@ and use composer to install dependencies: Using Git submodules -------------------- -Alternatively, you can install using native git submodules. This method works fine but it is -recommended that you use Composer due to the dependency management it provides. +Alternatively, you can install using native git submodules: git clone git://github.com/zendframework/ZendSkeletonApplication.git --recursive -You will also need to update public/index.php and modules/Application/Module.php to enable autoloading. -For public/index.php, replace lines 2-13 with: - - use Zend\Loader\AutoloaderFactory, - Zend\ServiceManager\ServiceManager, - Zend\Mvc\Service\ServiceManagerConfiguration; - - chdir(dirname(__DIR__)); - require_once (getenv('ZF2_PATH') ?: 'vendor/ZendFramework/library') . '/Zend/Loader/AutoloaderFactory.php'; - - // Setup autoloader - AutoloaderFactory::factory(); - -Within modules/Application/Module.php add this method to the Application class: - - public function getAutoloaderConfig() - { - return array( - 'Zend\Loader\ClassMapAutoloader' => array( - __DIR__ . '/autoload_classmap.php', - ), - 'Zend\Loader\StandardAutoloader' => array( - 'namespaces' => array( - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, - ), - ), - ); - } - +Virtual Host +------------ Afterwards, set up a virtual host to point to the public/ directory of the -project and you should be ready to go! \ No newline at end of file +project and you should be ready to go!