Skip to content

zirkeldesign/FroshDevelopmentHelper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development Helper for Shopware 6

Successor plugin of FroshProfiler and FroshMailCatcher

Installation

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()
 );

About

Helpful development tools

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 96.4%
  • Twig 3.6%