Docker-PHP/php/php+cli/psysh-config.php
Matthew Baggett f7873fe671
Feature/merging all my junk together (#4)
* Merging all my junk together.

* Add more junk from other repos.

* Fix missing hadolint.

* Fixed names

* Somehow, I missed out a lot of components

* More jiggery pokery

* More jiggery pokery

* Ignore some hadolint warnings

* Maybe fix build?

* Split back up php Dockerfile.

* dockerfile->file

* Flavours environment issues

* Fix flavours?

* remove onbuilds.

* Might be these quotes tripping it up.

* Try without caching/buildx/qemu

* OK it needs caching/buildx/qemu lol

* remove build cache.

* Put build caching back

* Add octoprint bits

* Add pulls.

* Fix build order + linter.

* rejig multistage builder to make hadolint happy(ier)
2021-05-30 13:04:18 +02:00

26 lines
No EOL
753 B
PHP

<?php
$autoloadersThatMayExist = [
'/app/vendor/autoload.php',
'/app/bootstrap.php',
];
$defaultIncludes = [];
foreach($autoloadersThatMayExist as $autoloader){
if(file_exists($autoloader)){
$defaultIncludes[] = $autoloader;
}
}
$animals = ['🐟', '🐁', '🐄', '🐆', '🐉', '🐍', '🐌', '🐋', '🐊','🐕','🐔', '🐒','🐢'];
return [
'commands' => [
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
];