public function __construct($csFixerBin, $timeout = self::DEFAULT_TIMEOUT, EventDispatcherInterface $dispatcher) { parent::__construct($dispatcher); if (!is_executable($csFixerBin)) { throw new \InvalidArgumentException(sprintf('%s is not executable!', $csFixerBin)); } $this->csFixerBin = $csFixerBin; $this->timeout = $timeout; }
/** * @param Client $client */ public function __construct(Client $client, EventDispatcherInterface $dispatcher) { parent::__construct($dispatcher); $this->client = $client; }
public function __construct(Client $client, MessageRepositoryInterface $messageRepository, EventDispatcherInterface $dispatcher) { parent::__construct($dispatcher); $this->messageRepository = $messageRepository; $this->client = $client; }
/** * @param GitWrapper $gitWrapper */ public function __construct(GitWrapper $gitWrapper, EventDispatcherInterface $dispatcher) { $this->gitWrapper = $gitWrapper; parent::__construct($dispatcher); }