Entries by puneetk00

Create a Linux Swap File

Swap is a space on a disk that is used when the amount of physical RAM memory is full. When a Linux system runs out of RAM, inactive pages are moved from the RAM to the swap space. Swap space can take the form of either a dedicated swap partition or a swap file. In […]

Install composer on Amazon AMI running on EC2

Install composer on Amazon AMI running on EC2 $ cd ~ $ sudo curl -sS https://getcomposer.org/installer | sudo php $ sudo mv composer.phar /usr/local/bin/composer $ sudo ln -s /usr/local/bin/composer /usr/bin/composer  then you can run  $ sudo composer install Puneet Kumar Magento Developer

What is interceptor or plugins in Magento 2?

Question : What is interceptor or plugins in Magento 2? Plugins (Interceptors) Basically plugin, or interceptor both are same. it is a class only which are modifies the behavior of public class functions by intercepting a functionality and running code before, after, or around that function call. This allows you to substitute or extend the behavior […]

What is object manager in Magento 2?

ObjectManager Object manager is Maento 2 core class a “Magento/Framework/ObjectManagerInterface”. Object manager to avoid boilerplate code when composing objects during instantiation. In the Magento framework, the implementation of the ObjectManagerInterface performs the duties of an object manager. Responsibilities : The object manager has the following responsibilities: 1. Object creation in factories and proxies. 2. Implementing […]

How to switch Php version between two version on aws

First go to path of CD /use/bin directory and search here. Should be installed your Php version which one you want to switch after that you have to run below command. sudo update-alternatives –set php /use/bin/php5.5 sudo update-alternatives –set php /use/bin/php7.3 sudo update-alternatives –set php /use/bin/php7.4

5. What step during the layout loading is the node processed?

5. What step during the layout loading is the node processed? A. After the generation of layout blocks. B. Vefore the generation of layout update XML, but after the generation of layout blocks. C. Before the generation of layout blocks, but after the generation of layout XML. D. After the generation of layout blocks, but […]