4 * This file is part of Psy Shell.
6 * (c) 2012-2017 Justin Hileman
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Psy\Command;
14 use Psy\Exception\BreakException;
15 use Symfony\Component\Console\Input\InputInterface;
16 use Symfony\Component\Console\Output\OutputInterface;
21 * Just what it says on the tin.
23 class ExitCommand extends Command
28 protected function configure()
32 ->setAliases(array('quit', 'q'))
33 ->setDefinition(array())
34 ->setDescription('End the current session and return to caller.')
37 End the current session and return to caller.
40 <return>>>> exit</return>
48 protected function execute(InputInterface $input, OutputInterface $output)
50 throw new BreakException('Goodbye.');