Virtual Types in Magento 2 is something that is not an actual class implemented anywhere in our module file system. Rather it is a configured class that is generated automatically for us by Magento 2 code generation library. Yes, we have to just configure a Virtual Type definition in our di.xml file and run the
Logging is a very important aspect of any programming language. Logs help us debug our code and finally identify issues in it. We do write logs to keep track of things, to debug our code and to report errors in any programming language. Magento 2 provided us a great logging library from PSR. But this
For a merchant the default Magento business implementation is not always enough. They always demand something that can add to their revenue💰. As a developer we should have this knowledge to implement or showcase them the way Magento 2 adds additional costs💲on top of the existing features. In this tutorial we will learn about the
This is just a thing of personal preference how would you like to manage your code and all that. Stop using old school Blocks or Helpers for reading data and providing to PHTML. Use new PSR compatible ViewModels concept instead. Follow the Separation of Concern principle to the fullest. Make your code more readable, maintainable and reusable. Inject your ViewModels via layout and start consuming them from views.
Redis is a key value pair in memory database. This is incredible fast for data retrieval. We can use Redis for cache and session storage. Magento 2 has an optional implementation of Redis for both cache and session storage which we can configure if required. In most of the production Magento 2 websites you will see the Redis integration. In this tutorial we will integrate Redis with docker compose for Magento 2.
Certain core modules in Magento 2 application is absolutely of no use for certain businesses. Business owners ask developers to remove those modules from the application to make it run faster. Also these additional modules capture your disk space which you definitely don’t want. Get rid of those annoying core modules in your Magento 2 application using amazing COMPOSER feature.
An SSL certificate has to be signed by a certificate authority. A certificate authority (CA) is a trusted entity that issues Secure Sockets Layer (SSL) certificates. A certificate authority is not a person or not an organization. It’s actually a system that holds a few encrypted files. Using this set of encrypted files the system generates
Done a recent Magento 2 upgrade to 2.4.* and getting lots of deprecated errors. Resolve PHP8 related deprecated errors, use strict typings in your own code base.
As a developer logging crucial debug information is an unavoidable part of our coding process. We all do write logs at places in our code for later use and investigation. These logs help us to understand what went wrong in some parts of the code so that we can debug that section of the code
Learning Kubernetes and doing all sorts of component setups but not having fun with silly examples. Then you are at the right place. In this topic, we will set up something that is more realistic, more enthusiastic, and more satisfactory for a Kubernetes beginner. Instead of running some CLI application or some HelloWorld web application