[DEV] Add PsySH REPL

This commit is contained in:
Diogo Peralta Cordeiro 2021-08-04 20:15:33 +01:00 committed by Hugo Sales
parent 3334aca7b9
commit b355f0d590
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
5 changed files with 1050 additions and 916 deletions

View File

@ -64,7 +64,8 @@
"symfony/maker-bundle": "^1.14", "symfony/maker-bundle": "^1.14",
"symfony/phpunit-bridge": "^5.2", "symfony/phpunit-bridge": "^5.2",
"symfony/profiler-pack": "*", "symfony/profiler-pack": "*",
"symfony/test-pack": "*" "symfony/test-pack": "*",
"theofidry/psysh-bundle": "^4.4"
}, },
"config": { "config": {
"preferred-install": { "preferred-install": {

1948
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -17,4 +17,5 @@ return [
HtmlSanitizer\Bundle\HtmlSanitizerBundle::class => ['all' => true], HtmlSanitizer\Bundle\HtmlSanitizerBundle::class => ['all' => true],
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true], Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
SymfonyCasts\Bundle\ResetPassword\SymfonyCastsResetPasswordBundle::class => ['all' => true], SymfonyCasts\Bundle\ResetPassword\SymfonyCastsResetPasswordBundle::class => ['all' => true],
Fidry\PsyshBundle\PsyshBundle::class => ['dev' => true, 'test' => true],
]; ];

View File

@ -31,4 +31,7 @@ Debugging
Because we are using Symfony, we recall that a useful tool for debugging Because we are using Symfony, we recall that a useful tool for debugging
is [Symfony's VarDumper component](https://symfony.com/doc/current/components/var_dumper.html), is [Symfony's VarDumper component](https://symfony.com/doc/current/components/var_dumper.html),
as a more friendly alternative to PHP's `var_dump` and `print_r`. as a more friendly alternative to PHP's `var_dump` and `print_r`.
There's also a [PsySH](https://psysh.org/) REPL that you can access
with `bin/console psysh` and experiment with direct calling of GNU social functions.

View File

@ -291,6 +291,9 @@
"psr/log": { "psr/log": {
"version": "1.1.3" "version": "1.1.3"
}, },
"psy/psysh": {
"version": "v0.10.8"
},
"sebastian/cli-parser": { "sebastian/cli-parser": {
"version": "1.0.1" "version": "1.0.1"
}, },
@ -599,6 +602,9 @@
"symfony/polyfill-php80": { "symfony/polyfill-php80": {
"version": "v1.22.1" "version": "v1.22.1"
}, },
"symfony/polyfill-php81": {
"version": "v1.23.0"
},
"symfony/process": { "symfony/process": {
"version": "v5.2.4" "version": "v5.2.4"
}, },
@ -775,6 +781,9 @@
"ref": "95b935177db9abb65356fe19e57fe5abd908b5b8" "ref": "95b935177db9abb65356fe19e57fe5abd908b5b8"
} }
}, },
"theofidry/psysh-bundle": {
"version": "4.4.0"
},
"theseer/tokenizer": { "theseer/tokenizer": {
"version": "1.2.0" "version": "1.2.0"
}, },