You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bundle creates a simple way to incorporate Underground Elephant base code into Symfony
5
-
6
-
## Installation
7
-
8
-
1. Add to composer.json under `require`
9
-
10
-
```
11
-
"uecode/common-bundle": "1.0.0",
12
-
```
13
-
14
-
2. Register in `AppKernel`
15
-
16
-
```php
17
-
$bundles = array(
18
-
// ...
19
-
new Uecode\Bundle\CommonBundle\UecodeCommonBundle(),
20
-
```
21
-
22
-
3. Make sure, if you are using a user entity, it implements `Uecode\Bundle\CommonBundle\Model\UserInterface`
23
-
24
-
4. In config.yml, define your entity class, and your id property
25
-
26
-
```yml
27
-
28
-
uecode_common:
29
-
services:
30
-
user:
31
-
entity: \Acme\DemoBundle\Entity\User
32
-
id_property: id
33
-
34
-
```
35
-
36
-
5. From here, you can have your controller extend `Uecode\Bundle\CommonBundle\Controller\Controller`
37
-
38
-
6. You can also hook into the events that are defined in [`Uecode\Bundle\CommonBundle\UecodeCommonEvents`](Uecode\Bundle\CommonBundle\UecodeCommonEvents.php)
0 commit comments