/** * Initialises the BedREST ServiceManager and associated dependencies. * * @param array $options */ protected function initServiceManager(array $options) { $annotationReader = new AnnotationReader(); $driver = new ServiceAnnotationDriver($annotationReader); $this->serviceConfiguration->setServiceMetadataDriverImpl($driver); $cache = new ArrayCache(); $this->serviceConfiguration->setServiceMetadataCacheImpl($cache); $this->serviceManager = new ServiceManager($this->serviceConfiguration); }