Swapping instances in the object manager

Swapping instances in the object manager

Coming up next week is MageTestFest. For the last ~2 years I have been doing a lot with testing and Magento, and I think this is awesome. In that spirit I decided to write this blogpost down. The problem Recently I was working on a Magento 2 project which did api...

Disabling all non Magento modules in Magento 2

Recently i was working on a Magento 2 webshop. It had a bug that when you visited the order grid you would get an exception. It was very generic, from the exception trace i was not possible to find the source. When i had similar problems in Magento 1 the first step i...

Requiring .env entries in Laravel application

In Laravel you can set your environment specific variables by using the .env file. In the application you can then easily retrieve the variable by using the env(‘VARIABLE_NAME’) function.This file is not be meant to be added to git. This way you can a...

Laracon EU unconference

This week i attended the european version of Laracon. It was a lot of fun and i talked to a lot of friends. There where a lot of great talks, but i had one favorite talk: the one about Monads by Christopher Pitt. Monads? Yes, Monads. The Monads design pattern comes...

Hide Laravel from Wappalyzer

Since a few years everyone seems to be using Laravel for about everything. That is completely understandable, as it provides some great features. The only downside is that when there is a (security) bug this is easily exploited. Sites and plugins like Wappalyzer...

Speedup Composer using Prestissimo

Composer is a revolution in the PHP world. You can use it to manage your dependencies. Need a specific library. Run composer require vendor/packagename and you can use it. Working on a project? Run composer install and you have all dependencies you need. There is just...

Linting PHP files with Travis

Travis is an awesome tool and my goto for Continues Integration and Continues Deployment. A quick win is to add a PHP linter: This will lint you PHP files before executing you tests. It only outputs files that have an error. Files that are OK are...