Skip to content

Commit

Permalink
Compatibility with ModuleManager/docs for composer-less installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jul 17, 2012
1 parent 7cf7697 commit 673a2b0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Module.php
@@ -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';
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -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.
Expand Down

0 comments on commit 673a2b0

Please sign in to comment.