Skip to content

Commit 37659a5

Browse files
SubrataBauriunicoder88
authored andcommitted
Fix links to correct Magento 2 filesystem
+ Changed the line number for - Implementation via virtual types to read data from layout.xml
1 parent f942a1d commit 37659a5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

1. Magento Architecture and Customization Techniques/3. Utilize configuration XML and variables scope.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
# Interfaces for work with configs
4848

49-
#### [\Magento\Framework\Config\Reader\Filesystem](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Config/Reader/Filesystem.php) -> [\Magento\Framework\Config\ReaderInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Config/ReaderInterface.php)
49+
#### [\Magento\Framework\Config\Reader\Filesystem](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Config/Reader/Filesystem.php) -> [\Magento\Framework\Config\ReaderInterface](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Config/ReaderInterface.php)
5050
Gets .xsd names from schema locator, gets full .xml file list from file resolver, merges all files, validates, runs converter to get resulting array.
5151
- read(scope)
5252
+ `fileResolver->get(_filename)`
@@ -56,36 +56,36 @@ Gets .xsd names from schema locator, gets full .xml file list from file resolver
5656
- `_idAttributes`, `_fileName`, `_schemaFile` (from schemaLocator), `_perFileSchema` (from schemaLocator), filename (menu.xml)
5757
- schemaFile from schemaLocator
5858

59-
#### [\Magento\Framework\Config\ConverterInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Config/ConverterInterface.php)
59+
#### [\Magento\Framework\Config\ConverterInterface](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Config/ConverterInterface.php)
6060
Convert an array to any format
6161
- `convert(\DOMDocument $source)`
6262

63-
#### [\Magento\Framework\Config\SchemaLocatorInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Config/SchemaLocatorInterface.php) - full path to .xsd
63+
#### [\Magento\Framework\Config\SchemaLocatorInterface](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Config/SchemaLocatorInterface.php) - full path to .xsd
6464
- `getPerFileSchema` - per file before merge
6565
- `getSchema` - merged file
6666

67-
#### [\Magento\Framework\Config\ValidationStateInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Config/ValidationStateInterface.php)
67+
#### [\Magento\Framework\Config\ValidationStateInterface](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Config/ValidationStateInterface.php)
6868

6969
This interface retrieves the validation state.
7070
- `isValidationRequired()`
7171

72-
[\Magento\Framework\App\Arguments\ValidationState](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/Arguments/ValidationState.php) is default implementation, that require validation only in developer mode.
72+
[\Magento\Framework\App\Arguments\ValidationState](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Arguments/ValidationState.php) is default implementation, that require validation only in developer mode.
7373

74-
#### [\Magento\Framework\Config\ScopeListInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Config/ScopeListInterface.php)
74+
#### [\Magento\Framework\Config\ScopeListInterface](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Config/ScopeListInterface.php)
7575

7676
This interface the list of all scopes.
7777
- `getAllScopes()`
7878

79-
#### [\Magento\Framework\Config\Data](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Config/Data.php) -> [\Magento\Framework\Config\DataInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Config/DataInterface.php)
79+
#### [\Magento\Framework\Config\Data](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Config/Data.php) -> [\Magento\Framework\Config\DataInterface](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Config/DataInterface.php)
8080

8181
Helps to get the configuration data in a specified scope.
8282
- `merge(array $config);`
8383
- `get($key, $default = null)`
8484

8585

8686
###### Links and examples:
87-
- Product types configs model to read data from [product_types.xml](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Catalog/etc/product_types.xml): [\Magento\Catalog\Model\ProductTypes](https://github.com/magento/magento2/tree/2.2-develop/app/code/Magento/Catalog/Model/ProductTypes)
88-
- Implementation via virtual types to read data from layout.xml: [Magento/Theme/etc/di.xml](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Theme/etc/di.xml#L48)
87+
- Product types configs model to read data from [product_types.xml](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Catalog/etc/product_types.xml): [\Magento\Catalog\Model\ProductTypes](https://github.com/magento/magento2/tree/2.3/app/code/Magento/Catalog/Model/ProductTypes)
88+
- Implementation via virtual types to read data from layout.xml: [Magento/Theme/etc/di.xml](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Theme/etc/di.xml#L42)
8989
- https://www.atwix.com/magento-2/working-with-custom-configuration-files/
9090

9191

0 commit comments

Comments
 (0)