Closed antonmedv closed 6 years ago
Symfony 4 should already be supported, what issue did you encounter?
No config created inside config/packages.
Sorry but you'll have to be a bit more descriptive than that as it works for me:
composer create-project symfony/skeleton psysh-demo
cd psysh-demo
composer req theofidry/psysh-bundle
bin/console psysh
> PsySH starts...
It works. But config file config/packages/psysh.yaml
does not created.
I'm not sure why it's not created but I don't know what should be done for the package for it to be created so unless it's an issue for you I would post an issue on the flex repository or look at the code itself to know under what conditions those files are created
AIUI, this is performed within Symfony\Flex\Configurator\CopyFromPackageConfigurator::configure()
, meaning the bundle needs to have an associated Flex recipe, registered via a PR to https://github.com/symfony/recipes-contrib
Also, even when copying services.xml
manually to config/packages/dev/psysh.xml
, the services are correctly recognized by the container, but the expected $container/$kernel/$parameters/$self
variables are not available (and ls
returns empty).
Thanks for checking this out @FGM.
I would love Flex to be a bit more flexible and allow a simple config entry in the composer.json
like they do with service providers in Laravel, but meanwhile I guess a recipe will be required.
Regarding the second issue that sounds much weirder...
Yes, this seems to be heavily requested, judging from issues on the Flex repo, but fabpot is firm on this for now. That's one good thing with Laravel 5 service providers (or Drupal modules, BTW) indeed.
To be honest I would like the psysh
alias so let's make a recipe for it
What's the workaround to register $container
and other variables manually?
Add support for symfony4.