Note: added here to find it much easier.
git config core.fileMode false
If false, the executable bit differences between the index and the
working copy are ignored; useful on broken filesystems like FAT.
See git-update-index(1). True by default.
Read more “GIT – ignore file permissions”
A plugin is used to extend or modify a public method’s behaviour by applying code before, after, or around that observed method.
The first argument for the before, after, and around methods is an object that provides access to all public methods of the observed method’s class.
Note: The rest of the parameters for these functions are depending on the function type (before, after, around) – they are having a dynamic number of parameters.
Read more “M2 Defining a plugin”
A plugin, or interceptor, is a class that modifies the behavior of public class functions by intercepting a function call and running code before, after, or around that function call. This allows you to substitute or extend the behavior of original, public methods for any class or interface.
Read more “Magento 2 Plugin’s XML”
The cache is the biggest issue when you develop so you need to know all the possible ways of cleaning it.
There are 3 way to clean the cache (similar to Magento 1): Read more “Clear Cache in Magento 2”
Magento 2 can run in one of three primary modes — developer, production, and default.
But aside from that ones there is also a maintenance mode, which is used when you want to make the site unavailable to the public during updates or other changes. Read more “Maintenance mode (M2)”
First, will be a good idea to check the current MODE:
php bin/magento deploy:mode:show
Read more “Set Environment Variable [Developer or Production Mode] (M2)”
Magento can be setup in 4 different ways, here i’m touching just the 4th – through composer.
- Composer create project, the final parameter is where it will be installed Magento. In my case “./”, it is in the current directory.
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition ./
During installation I got a series of problems, I’ll try to add them between steps so you know what it can happen, example:
Read more “Setup Magento 2 with Sample Data through Composer”
Make sure you created the needed page into this section:
CMS > Pages
Read more “Set default home page for Magento”