My first commit of codes
This commit is contained in:
17
vendor/psy/psysh/src/Psy/functions.php
vendored
Normal file
17
vendor/psy/psysh/src/Psy/functions.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Psy;
|
||||
|
||||
if (!function_exists('Psy\sh')) {
|
||||
/**
|
||||
* Command to return the eval-able code to startup PsySH.
|
||||
*
|
||||
* eval(\Psy\sh());
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function sh()
|
||||
{
|
||||
return 'extract(\Psy\Shell::debug(get_defined_vars(), isset($this) ? $this : null));';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user