| Conditions | 2 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | public function boot() |
||
| 44 | { |
||
| 45 | parent::boot(); |
||
| 46 | |||
| 47 | // Load our annotation if it get's mentioned, Doctrine does not try to autoload it via plain PHP. |
||
| 48 | AnnotationRegistry::registerLoader( |
||
| 49 | function ($class) { |
||
| 50 | if (0 === strcmp('Tenside\CoreBundle\Annotation\ApiDescription', $class)) { |
||
| 51 | class_exists('Tenside\CoreBundle\Annotation\ApiDescription'); |
||
| 52 | return true; |
||
| 53 | } |
||
| 54 | |||
| 55 | return false; |
||
| 56 | } |
||
| 57 | ); |
||
| 58 | } |
||
| 59 | } |
||
| 60 |