Beispiel #1
0
 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;
 }
Beispiel #2
0
 /**
  * @param Client $client
  */
 public function __construct(Client $client, EventDispatcherInterface $dispatcher)
 {
     parent::__construct($dispatcher);
     $this->client = $client;
 }
Beispiel #3
0
 public function __construct(Client $client, MessageRepositoryInterface $messageRepository, EventDispatcherInterface $dispatcher)
 {
     parent::__construct($dispatcher);
     $this->messageRepository = $messageRepository;
     $this->client = $client;
 }
Beispiel #4
0
 /**
  * @param GitWrapper $gitWrapper
  */
 public function __construct(GitWrapper $gitWrapper, EventDispatcherInterface $dispatcher)
 {
     $this->gitWrapper = $gitWrapper;
     parent::__construct($dispatcher);
 }