/** * Create an injector * * @param array $modules * @return Injector */ public function createInjector(array $modules = []) { $reflection = ReflectionImpl::create($this->cache); return InjectorImpl::create(array_merge([new SpotModule($reflection, $this->storage, $this->cache, $this->isDebug(), $this->dump), "Spot\\Domain\\DomainModule"], $modules), $reflection, $this->storage, $this->logger); }