floriansemm / boris-bundle
This Bundle provide REPL shell in application context for symfony console
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 3
Type:symfony-bundle
Requires
- php: >=5.3.2
- d11wtq/boris: *
- symfony/framework-bundle: >=2.0,<2.4-dev
This package is auto-updated.
Last update: 2024-11-07 23:16:17 UTC
README
Do you ever want to call one of your application services to try something out? Then this bundle could be something for you. With this bundle you can call Symfony services directly in your console.
Overview
Provide REPL shell in application context with Symfony console
Instalation
"require-dev": {
"floriansemm/boris-bundle": "1.*"
},
Usage
Initialize the interactive shell prompt
php app/console repl
Your console should now look like this
[1] Symfony-2.6.3 - app/dev/debug>
Now let's call doctrine and select a entity:
[1] Symfony-2.6.3 - app/dev/debug> $postRepository = $container->get('doctrine')->getRepository('AcmeDemoBundle:Post');
[2] Symfony-2.6.3 - app/dev/debug> $postRepository->find('1');
// object(Acme\DemoBundle\Entity\Post)(
//
// )