public function test_changing_container_changes_invoker() { $kernel = new Kernel(new Container()); $invoker = $kernel->getProviderInvoker(); $container = new Container(); $kernel->setContainer($container); $this->assertTrue($kernel->getProviderInvoker() !== $invoker); $this->assertTrue($kernel->getProviderInvoker() instanceof IProviderInvoker); }
/** * Shutdown App. */ public function shutdown() { if (!$this->started) { return; } $this->started = false; $this->kernel->shutdown(); $this->eventer->dispatch(new KernelShutdownEvent($this->kernel)); $this->eventer->dispatch(new AppShutdownEvent($this)); }