Skip to content

Commit 673a2b0

Browse files
committed
Compatibility with ModuleManager/docs for composer-less installation
1 parent 7cf7697 commit 673a2b0

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Module.php

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
/**
3+
* This file is placed here for compatibility with Zendframework 2's ModuleManager.
4+
* It allows usage of this module even without composer.
5+
* The original Module.php is in 'src/DoctrineORMModule' in order to respect PSR-0
6+
*/
7+
require_once __DIR__ . '/src/DoctrineORMModule/Module.php';

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ Installation of this module uses composer. For composer documentation, please re
3737
5. create directory `my/project/directory/data/DoctrineORMModule/Proxy` and make sure your application has write
3838
access to it. This directory can be changed using the module options.
3939

40+
41+
42+
#### Installation steps (without composer)
43+
44+
1. install [DoctrineModule](http://github.com/doctrine/DoctrineModule)
45+
2. clone this module to `vendor/DoctrineORMModule`
46+
2. setup PSR-0 autoloading for namespace `DoctrineORMModule` (the directory where the classes in this namespace live
47+
is `vendor/DoctrineORMModule/src/DoctrineORMModule`.
48+
3. The module depends on [Doctrine ORM 2.3.*](https://github.com/doctrine/orm),
49+
[Doctrine DBAL 2.3.*](https://github.com/doctrine/dbal),
50+
[Doctrine Migrations](https://github.com/symfony/migrations). You have to download/install those
51+
packages and have them autoloaded.
52+
4. open `my/project/directory/configs/application.config.php` and add the following key to your `modules`:
53+
54+
```php
55+
'DoctrineModule',
56+
'DoctrineORMModule',
57+
```
58+
4059
#### Registering drivers with the DriverChain
4160

4261
To register drivers with Doctrine module simply add the drivers to the doctrine.driver key in your configuration.

0 commit comments

Comments
 (0)