Skip to content

Commit

Permalink
updated readme; moved ClassmapTask to phing-task
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsentwined committed Sep 16, 2012
1 parent 804394e commit 62767a3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 164 deletions.
18 changes: 14 additions & 4 deletions README.md
Expand Up @@ -39,20 +39,30 @@ $ pear install [--alldeps] phing/phing

# Usage

## ClassmapTask
You must initialize an instance of your Zf2 application through **ZfTask** before using any of the remaining Tasks.

Generate a classmap for the directory `foo/library` (and its subdirectories), save it at `foo/autoload_classmap.php`.
## ZfTask

Bootstrap the ZF2 application using the file `foo/bootstrap.php`. The bootstrap file must return an instance of `Zend\Mvc\Application`.

```xml
<project>
<target>
<includepath classpath="vendor/heartsentwined/zf2-phing-task/src/task" />
<taskdef name="classmap" classname="ClassmapTask" />
<classmap dir="foo/library" output="foo/autoload_classmap.php" />
<taskdef name="zf" classname="ZfTask" />
<zf bootstrap="foo/bootstrap.php" />
</target>
</project>
```

`foo/bootstrap.php`:

```php
/* do some bootstrap */
$application = Zend\Mvc\Application::init(/* config array */);
return $application;
```

## DoctrineEntityTask

Generate entities for the EntityManager `doctrine.entitymanager.orm_default`, base directory at `foo/src`, with filter `Foo\Entity`.
Expand Down
160 changes: 0 additions & 160 deletions src/task/ClassmapTask.php

This file was deleted.

0 comments on commit 62767a3

Please sign in to comment.