View ContainerCommandLoader.php
<?php | |
namespace App\Console; | |
use Psr\Container\ContainerInterface; | |
use Symfony\Component\Console\CommandLoader\CommandLoaderInterface; | |
use Symfony\Component\Console\Exception\CommandNotFoundException; | |
class ContainerCommandLoader implements CommandLoaderInterface | |
{ |
View .psysh.php
<?php | |
return [ | |
'defaultIncludes' => [ | |
__DIR__ . '/bootstrap-tinker.php', | |
], | |
'startupMessage' => sprintf('<info>%s</info>', shell_exec('php artisan inspire')), | |
]; |
View Person.php
<?php | |
/** | |
* @property-read string $name | |
* @property-read int $age | |
*/ | |
class Person | |
{ | |
private $name; | |
private $age; |