Skip to content

Commit 8bcfac4

Browse files
author
Robin Cawser
committed
Update readme with installation instructions
1 parent 520ad52 commit 8bcfac4

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ creating keys or passwords. Using Doctrine's `prePersist` callback, StringGenera
55
before the entity is persisted. It also checks whether the string is unique to that property (just in case) and quietly
66
generates a new string. This results as a minimum of one extra query whenever you flush an entity for the first time.
77

8+
## Install
9+
10+
Add `"vivait/string-generator-bundle": "dev-master"` to your composer and run `composer update`
11+
12+
Update your `AppKernel`:
13+
14+
public function registerBundles()
15+
{
16+
$bundles = array(
17+
...
18+
new Vivait\StringGeneratorBundle\VivaitStringGeneratorBundle(),
19+
}
20+
821
## Basic usage
922

1023
Add the `@Vivait\StringGenerator()` annotation to an entity property

0 commit comments

Comments
 (0)