krak/symfony-playground
Composer 安装命令:
composer require krak/symfony-playground
包简介
Symfony playground for tinkering/testign your app.
README 文档
README
Symfony playground enables developers to quickly test any code in their system and access any of the private services in their app.
Installation
Install with composer at krak/symfony-playground.
Then you need to change the PlaygroundBundle in your config/bundles.php file to be dev only:
return [ // ... Krak\SymfonyPlayground\PlaygroundBundle::class => ['dev' => true], ];
Usage
To enable the playground, you can create a playground.php in the project root: %kernel.project_dir%/playground.php.
This file needs to return a closure. Here's an example:
<?php /** this function is autowired, so type hint any service to access it here */ return function(App\Service\MyService $service, Psr\Log\LoggerInterface $log) { $log->info("Playing with my symfony app!"); };
You should be able to run this with: ./bin/console playground.
统计信息
- 总下载量: 11.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-25