This does the job : 
```php
        AnnotationRegistry::registerloader(
            array(
                require __DIR__ . '/../vendor/autoload.php',
                'loadClass'
            )
        );

```