floriansemm/boris-bundle
Composer 安装命令:
composer require floriansemm/boris-bundle
包简介
This Bundle provide REPL shell in application context for symfony console
README 文档
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)(
//
// )
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-04