You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1. Magento Architecture and Customization Techniques/2. Describe Magento’s directory structure.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ In addition, you can choose the component root directory to start development. T
37
37
>
38
38
> -- [Magento DevDocs - About component file structure](https://devdocs.magento.com/guides/v2.2/extension-dev-guide/prepare/prepare_file-str.html)
39
39
40
-
Class [Magento\Framework\Module\ModuleList\Loader](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Module/ModuleList/Loader.php#L78) load `etc/module.xml` files and sort modules by sequence.
40
+
Class [Magento\Framework\Module\ModuleList\Loader](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Module/ModuleList/Loader.php#L78) load `etc/module.xml` files and sort modules by sequence.
41
41
The sequence use for sorting events, plugins, preferences and layouts.
Copy file name to clipboardExpand all lines: 1. Magento Architecture and Customization Techniques/4. Demonstrate how to use dependency injection.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ Magento loads di.xml files and merges them all together from the following stage
9
9
10
10
### Object manager
11
11
12
-
Under the hood, the [ObjectManager](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php)
12
+
Under the hood, the [ObjectManager](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php)
13
13
will use PHP reflection features to look at a class’s __construct type hints/parameters,
14
14
automatically instantiate the object for us, and then pass it into the constructor as an argument.
Copy file name to clipboardExpand all lines: 1. Magento Architecture and Customization Techniques/5. Demonstrate ability to use plugins.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
There are three types of plugins in magento: around, before and after.
4
4
5
5
__Important__: Classes, abstract classes and interfaces that are implementations of or inherit from classes that have plugins will also inherit plugins from the parent class.
6
-
For example, if you create a plugin for [\Magento\Catalog\Block\Product\AbstractProduct](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Catalog/Block/Product/AbstractProduct.php),
6
+
For example, if you create a plugin for [\Magento\Catalog\Block\Product\AbstractProduct](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Catalog/Block/Product/AbstractProduct.php),
7
7
plugin methods will be called for all child classes, such as \Magento\Catalog\Block\Product\View, \Magento\Catalog\Block\Product\ProductList\Upsell etc.
8
8
9
9
### Limitations
@@ -131,9 +131,9 @@ Magento automatically generates `Interceptor` class for the plugin target and st
@@ -63,8 +63,8 @@ class MyObserver implements \Magento\Framework\Event\ObserverInterface
63
63
64
64
### Dispatching events
65
65
66
-
Events dispatch by [Magento\Framework\Event\Manager](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Event/Manager.php) class
67
-
that implement [Magento\Framework\Event\ManagerInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Event/ManagerInterface.php) interface:
66
+
Events dispatch by [Magento\Framework\Event\Manager](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Event/Manager.php) class
67
+
that implement [Magento\Framework\Event\ManagerInterface](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Event/ManagerInterface.php) interface:
- merges [\Magento\Cron\Model\Config\Reader\Db::get](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Cron/Model/Config/Reader/Db.php#L51) from Database
- merges [\Magento\Cron\Model\Config\Reader\Db::get](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Cron/Model/Config/Reader/Db.php#L51) from Database
### Identify the function and proper use of automatically available events
182
182
183
-
Model events [\Magento\Framework\Model\AbstractModel](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Model/AbstractModel.php):
183
+
Model events [\Magento\Framework\Model\AbstractModel](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Model/AbstractModel.php):
Copy file name to clipboardExpand all lines: 1. Magento Architecture and Customization Techniques/7. Utilize the CLI.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -97,8 +97,8 @@ class ExampleCommand extends \Symfony\Component\Console\Command\Command
97
97
}
98
98
```
99
99
100
-
- Declare your command in [\Magento\Framework\Console\CommandListInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Console/CommandListInterface.php) using dependency injection ({module}/etc/di.xml).
101
-
See also CommandListInterface implementation: [\Magento\Framework\Console\CommandList](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Console/CommandList.php)
100
+
- Declare your command in [\Magento\Framework\Console\CommandListInterface](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Console/CommandListInterface.php) using dependency injection ({module}/etc/di.xml).
101
+
See also CommandListInterface implementation: [\Magento\Framework\Console\CommandList](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Console/CommandList.php)
Copy file name to clipboardExpand all lines: 1. Magento Architecture and Customization Techniques/8. Demonstrate the ability to manage the cache.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -127,14 +127,14 @@ Sessions and caching data should never be stored in one database in Redis. In th
127
127
### Describe how to clear the cache programmatically.
128
128
129
129
To clear the cache programmatically you neeed to call next the methods:
130
-
-[\Magento\Framework\App\CacheInterface::remove($identifier)](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/CacheInterface.php#L48) - remove cached data by identifier
131
-
-[\Magento\Framework\App\CacheInterface::clean($tags = [])](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/CacheInterface.php#L56) - clean cached data by specific tag
130
+
-[\Magento\Framework\App\CacheInterface::remove($identifier)](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/CacheInterface.php#L48) - remove cached data by identifier
131
+
-[\Magento\Framework\App\CacheInterface::clean($tags = [])](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/CacheInterface.php#L56) - clean cached data by specific tag
132
132
133
133
##### What mechanisms are available for clearing all or part of the cache?
134
134
135
135
Dispatch a `clean_cache_by_tags` event with parameter of the object you want to clear from the cache.
-[Magento\PageCache\Observer\FlushCacheByTags](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/PageCache/Observer/FlushCacheByTags.php#L57) - if Built-In caching is enabled
163
-
-[Magento\CacheInvalidate\Observer\InvalidateVarnishObserver](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/CacheInvalidate/Observer/InvalidateVarnishObserver.php#L50)- if Varnish caching is enabled
162
+
-[Magento\PageCache\Observer\FlushCacheByTags](https://github.com/magento/magento2/blob/2.3/app/code/Magento/PageCache/Observer/FlushCacheByTags.php#L57) - if Built-In caching is enabled
163
+
-[Magento\CacheInvalidate\Observer\InvalidateVarnishObserver](https://github.com/magento/magento2/blob/2.3/app/code/Magento/CacheInvalidate/Observer/InvalidateVarnishObserver.php#L50)- if Varnish caching is enabled
0 commit comments