Browse Source

[FIX] shell command. set sa user in shell

Psy/sh not working with PHP >= 7.1 since cannot reassing $this
Adam Bukowski 2 years ago
parent
commit
cd18f57ee4
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      console/ShellCommand.php

+ 4
- 1
console/ShellCommand.php View File

@@ -17,6 +17,9 @@ class ShellCommand extends Command
17 17
 
18 18
     protected function execute(InputInterface $input, OutputInterface $output)
19 19
     {
20
-        eval(\Psy\sh());
20
+        \Base_AclCommon::set_sa_user();
21
+        \Psy\Shell::debug(get_defined_vars());
22
+        // below not working in PHP >= 7.1
23
+//        eval(\Psy\sh());
21 24
     }
22 25
 }

Loading…
Cancel
Save