krak/symfony-playground 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固