Extension’s custom initialization on Magento start

- Fire development, Magento 2

Magento 2 Development

To load custom mini-libraries with short popular global functions in Magento 2, run the following code:

In case of console apps, do everything as follows:

Source

More tips from the Cookbook