123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace Symfony\Component\Finder\Exception;
- use Symfony\Component\Finder\Adapter\AdapterInterface;
- use Symfony\Component\Finder\Shell\Command;
- class ShellCommandFailureException extends AdapterFailureException
- {
-
- private $command;
-
- public function __construct(AdapterInterface $adapter, Command $command, \Exception $previous = null)
- {
- $this->command = $command;
- parent::__construct($adapter, 'Shell command failed: "'.$command->join().'".', $previous);
- }
-
- public function getCommand()
- {
- return $this->command;
- }
- }
|