X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=README.md;h=4e7d164a04e08d763312f778a998beb5f5b9d2f0;hb=553ab98287a3c3ea5653dc6b1f90180dc42ec76d;hp=dd9072bc9233a1584ac63d49a9dc9d87e42686fb;hpb=99c241d18839384aa13fc9d31b677a13b8739756;p=zf2.biz%2Fapplication_blanche.git diff --git a/README.md b/README.md index dd9072b..4e7d164 100644 --- a/README.md +++ b/README.md @@ -23,37 +23,10 @@ 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\StandardAutoloader' => array( - 'namespaces' => array( - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, - ), - ), - ); - } - Virtual Host ------------ Afterwards, set up a virtual host to point to the public/ directory of the