public function __construct(ProjectInterface $projectRepository) { parent::__construct(); $this->projectRepository = $projectRepository; $this->spec = new OldDeploymentSpecification(new DateTime()); }