Housekeeping

This commit is contained in:
Greyscale 2022-06-15 11:34:24 +02:00
parent de7293398e
commit 3136b37d61
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,5 @@
<?php
$autoloadersThatMayExist = [
'/app/vendor/autoload.php',
'/app/bootstrap.php',
@ -6,8 +7,8 @@ $autoloadersThatMayExist = [
$defaultIncludes = [];
foreach($autoloadersThatMayExist as $autoloader){
if(file_exists($autoloader)){
foreach ($autoloadersThatMayExist as $autoloader) {
if (file_exists($autoloader)) {
$defaultIncludes[] = $autoloader;
}
}
@ -16,11 +17,11 @@ $animals = ['🐟', '🐁', '🐄', '🐆', '🐉', '🐍', '🐌', '🐋', '
return [
'commands' => [
new \Psy\Command\ParseCommand,
new \Psy\Command\ParseCommand(),
],
'defaultIncludes' => $defaultIncludes,
'startupMessage' => sprintf('You are on <error>%s</error> Uptime: <info>%s</info>', trim(shell_exec('hostname')), trim(shell_exec('uptime -p'))),
//'prompt' => $animals[array_rand($animals)],
'updateCheck' => 'never',
'useBracketedPaste' => true
];
];

View file

@ -1,2 +1,3 @@
<?php
phpinfo();