EPESI BIM • Business Information Manager • Cloud CRM/ERP http://epe.si/ https://epe.si
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ShellCommand.php 622B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Epesi\Console;
  3. use Symfony\Component\Console\Command\Command;
  4. use Symfony\Component\Console\Input\InputInterface;
  5. use Symfony\Component\Console\Output\OutputInterface;
  6. class ShellCommand extends Command
  7. {
  8. protected function configure()
  9. {
  10. $this
  11. ->setName('shell')
  12. ->setDescription('Run interactive shell');
  13. }
  14. protected function execute(InputInterface $input, OutputInterface $output)
  15. {
  16. \Base_AclCommon::set_sa_user();
  17. \Psy\Shell::debug(get_defined_vars());
  18. // below not working in PHP >= 7.1
  19. // eval(\Psy\sh());
  20. }
  21. }