Permalink
Browse files

Compatibility with ModuleManager/docs for composer-less installation

  • Loading branch information...
1 parent 7cf7697 commit 673a2b0a46c94bb9f4cfca5f8be07254b84279ba @Ocramius Ocramius committed Jul 17, 2012
Showing with 26 additions and 0 deletions.
  1. +7 −0 Module.php
  2. +19 −0 README.md
View
@@ -0,0 +1,7 @@
+<?php
+/**
+ * This file is placed here for compatibility with Zendframework 2's ModuleManager.
+ * It allows usage of this module even without composer.
+ * The original Module.php is in 'src/DoctrineORMModule' in order to respect PSR-0
+ */
+require_once __DIR__ . '/src/DoctrineORMModule/Module.php';
View
@@ -37,6 +37,25 @@ Installation of this module uses composer. For composer documentation, please re
5. create directory `my/project/directory/data/DoctrineORMModule/Proxy` and make sure your application has write
access to it. This directory can be changed using the module options.
+
+
+#### Installation steps (without composer)
+
+ 1. install [DoctrineModule](http://github.com/doctrine/DoctrineModule)
+ 2. clone this module to `vendor/DoctrineORMModule`
+ 2. setup PSR-0 autoloading for namespace `DoctrineORMModule` (the directory where the classes in this namespace live
+ is `vendor/DoctrineORMModule/src/DoctrineORMModule`.
+ 3. The module depends on [Doctrine ORM 2.3.*](https://github.com/doctrine/orm),
+ [Doctrine DBAL 2.3.*](https://github.com/doctrine/dbal),
+ [Doctrine Migrations](https://github.com/symfony/migrations). You have to download/install those
+ packages and have them autoloaded.
+ 4. open `my/project/directory/configs/application.config.php` and add the following key to your `modules`:
+
+ ```php
+ 'DoctrineModule',
+ 'DoctrineORMModule',
+ ```
+
#### Registering drivers with the DriverChain
To register drivers with Doctrine module simply add the drivers to the doctrine.driver key in your configuration.

0 comments on commit 673a2b0

Please sign in to comment.