定制 frosh/development-helper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

frosh/development-helper

最新稳定版本:3.0.0

Composer 安装命令:

composer require frosh/development-helper

包简介

Development Helper

README 文档

README

Successor plugin of FroshProfiler and FroshMailCatcher

Installation

composer require frosh/development-helper --dev
bin/console plugin:refresh
bin/console plugin:install --activate FroshDevelopmentHelper

Git Version

  • Checkout Plugin in /custom/plugins/FroshDevelopmentHelper
  • Download FroshPluginUploader and run ext:prepare [folder to plugin]
  • Install the Plugin with the Plugin Manager

Features

  • Show Twig Includes / Blocks in Template as HTML Comment
  • Disable Annoying Storefront Error Handler
  • Disables Twig Cache
  • Twig Variables in Twig Tab
  • Generate definition from command line

Generate plugin

./bin/console frosh:make:plugin <plugin-name>

Optional with --namespace=xxx\\xx specifying the namespace

Generating Entities or edit Entities

Start wizard with

./bin/console frosh:make:definition My\\Plugin\\Namespace\\SomeDefinition

Generate Migration

./bin/console frosh:make:migration <plugin-name> <entity-name>

Example entity name: product, category, order

Checks the difference of that definition with the database and creates a migration

Generate Twig Extension file

./bin/console frosh:extend:template <plugin-name>

Asks for the block you want to extend and creates the twig extension file for you

SQL Logger for Console Debugging

Prints executed SQL to the console, in such a way that they can be easily copied to other SQL tools for further debugging. This is similar to the symfony debug bar, but useful in CLI commands and tests.

Usage:

 Kernel::getConnection()->getConfiguration()->setSQLLogger(
     new \Frosh\DevelopmentHelper\Doctrine\EchoSQLLogger()
 );

Known issues

Some HTML is not rendered correctly when this plugin is active 💣

This plugin can cause problems with blocks, due to the feature to show the block name as HTML comment. If you encounter such issues with your plugin or project, you can configure this in config/packages/frosh_development_helper.yaml

There is a predefined list of pattern which likely would cause such problems - feel free to provide a pull request with more such generic patterns.

统计信息

  • 总下载量: 255.78k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 88
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 88
  • Watchers: 4
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-24