BillysInterns /
hv-client
| 1 | |||
| 2 | <?php |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 3 | |||
| 4 | // Bootstrap the JMS custom annotations for Object to JSON mapping |
||
| 5 | $pathPrefix = "vendor"; |
||
| 6 | if ( !file_exists("vendor/autoload.php")) |
||
| 7 | { |
||
| 8 | $pathPrefix = "../.."; |
||
| 9 | } |
||
| 10 | |||
| 11 | require_once($pathPrefix . '/autoload.php'); |
||
| 12 | |||
| 13 | \Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace( |
||
| 14 | 'JMS\Serializer\Annotation', |
||
| 15 | $pathPrefix . '/jms/serializer/src' |
||
| 16 | ); |
||
| 17 | |||
| 18 |