/**
  * @param ServiceContainer $container
  */
 public function load(ServiceContainer $container)
 {
     $container->setShared('phpspec_extension.git.repository', function () {
         return GitRepository::fromCurrentWorkingDirectory();
     });
     // N.B. - this is not ideal, but there appears to be no other way to achieve this currently.
     $classGenerator = $container->get('code_generator.generators.class');
     $specGenerator = $container->get('code_generator.generators.specification');
     $interfaceGenerator = $container->get('code_generator.generators.interface');
     $this->decorateGenerator($container, 'code_generator.generators.class', $classGenerator);
     $this->decorateGenerator($container, 'code_generator.generators.specification', $specGenerator);
     $this->decorateGenerator($container, 'code_generator.generators.interface', $interfaceGenerator);
 }
 /**
  * @param string $filePath
  */
 private function stageFile($filePath)
 {
     $this->repository->stageFile($filePath);
 }