Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / finder / Exception / ShellCommandFailureException.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Finder\Exception;
13
14 @trigger_error('The '.__NAMESPACE__.'\ShellCommandFailureException class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
15
16 use Symfony\Component\Finder\Adapter\AdapterInterface;
17 use Symfony\Component\Finder\Shell\Command;
18
19 /**
20  * @author Jean-François Simon <contact@jfsimon.fr>
21  *
22  * @deprecated since 2.8, to be removed in 3.0.
23  */
24 class ShellCommandFailureException extends AdapterFailureException
25 {
26     private $command;
27
28     public function __construct(AdapterInterface $adapter, Command $command, \Exception $previous = null)
29     {
30         $this->command = $command;
31         parent::__construct($adapter, 'Shell command failed: "'.$command->join().'".', $previous);
32     }
33
34     /**
35      * @return Command
36      */
37     public function getCommand()
38     {
39         return $this->command;
40     }
41 }