public function injectEnvironment(Environment $environment) { $this->environment = $environment; $this->environmentConfiguration = $this->createEnvironmentConfiguration($environment->getContext(), $environment->getPathToTemporaryDirectory()); }