Root scripts in Magento 2 animate the most common way of recovering the information like getting the server time and store time.
Making a root script in Magento 2 assists the designer with saving time. In any case, a root script has an issue as well. In root scripts, we can't exploit IDE auto-culmination which supports the efficiency of the designers.
By utilizing the use class in root script Magento 2, the IDE begins supporting the auto-finish office. Consequently, it's a superior decision for designers.
For more info: https://meetanshi.com/blog/use-class-in-root-script-magento-2/
No comments:
Write comments