Giter Club home page Giter Club logo

fifoshopwareevents's Introduction

FIFO Shopware 5 Events

I created this crap because:

  • There's no documentation for events in shopware (as almost anything in shopware ... yay)

  • Frosh profiler is: SLOW, buggy (the events part loaded forever I don't know if they fixed it and I don't care), adds things I DONT need, makes my development process SLOW.

  • My crap plugin does what it says. Period.

How to install

  • Clone this plugin into your custom/plugins folder
cd my-shopware-project/custom/plugins;

git clone https://github.com/pthreat/FIFOShopwareEvents
  • In the root folder of this plugin, run this command:
mkfifo fifo; chmod 666 fifo 
  • Login to your shopware backend and go to the Custom > Plugins menu
  • Install this plugin and activate it
  • Once the plugin is installed and active, proceed to:
tail -f fifo

In this very same folder.

As this plugin is very fast, your performance will have little to no degradation.

Examples

For all of the following examples, you are supposed to be standing at this plugin's folder:

Tail the fifo file, filter through all events which contain the "basket" string

tail -f ./fifo | grep  -i basket

Dump all events to a physical "out" file for later analysis

tail -f ./fifo > out

FAQ

  • Q: Will this completely fuck my disk space?

  • A: No, FIFO's are files which weigh 0 bytes, everything that is written to them is discarded as soon as it comes in

  • Q: I want to save the shit to a file so I can do more debugging

  • A: See examples above

  • Q: Can I also dump the arguments?

  • A: Yes, just open Components/ExtendedEventManager.php and add the arguments as an additional parameter, I personally don't care for them as it can be a lot of data

  • Q: Will this also show events from my plugins?

  • A: Every event that you fire in any plugin will be shown

  • Q: Does it debug console events?

  • A: Every single event

fifoshopwareevents's People

Contributors

pmfederico avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.