|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\RequireJs\Config\File\Collector\Aggregated $fileSource, \Magento\Framework\View\DesignInterface $design, ReadFactory $readFactory, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\Code\Minifier\AdapterInterface $minifyAdapter, Minification $minification, RepositoryMap $repositoryMap) | |
| getConfigFileRelativePath () | |
| getMixinsFileRelativePath () | |
| getRequireJsFileRelativePath () | |
| getBaseConfig () | |
| getMinResolverRelativePath () | |
| getUrlResolverFileRelativePath () | |
| getMapFileRelativePath () | |
| getMinResolverCode () | |
Data Fields | |
| const | DIR_NAME = '_requirejs' |
| const | CONFIG_FILE_NAME = 'requirejs-config.js' |
| const | MIXINS_FILE_NAME = 'mage/requirejs/mixins.js' |
| const | REQUIRE_JS_FILE_NAME = 'requirejs/require.js' |
| const | STATIC_FILE_NAME = 'mage/requirejs/static.js' |
| const | MIN_RESOLVER_FILENAME = 'requirejs-min-resolver.js' |
| const | MAP_FILE_NAME = 'requirejs-map.js' |
| const | URL_RESOLVER_FILE_NAME = 'mage/requirejs/baseUrlResolver.js' |
| const | BUNDLE_JS_DIR = 'js/bundle' |
| const | FULL_CONFIG_TEMPLATE |
| config | |
| const | PARTIAL_CONFIG_TEMPLATE |
Protected Member Functions | |
| getConfigFileName () | |
Provider of RequireJs config information
Definition at line 16 of file Config.php.
| __construct | ( | \Magento\Framework\RequireJs\Config\File\Collector\Aggregated | $fileSource, |
| \Magento\Framework\View\DesignInterface | $design, | ||
| ReadFactory | $readFactory, | ||
| \Magento\Framework\View\Asset\Repository | $assetRepo, | ||
| \Magento\Framework\Code\Minifier\AdapterInterface | $minifyAdapter, | ||
| Minification | $minification, | ||
| RepositoryMap | $repositoryMap | ||
| ) |
| \Magento\Framework\RequireJs\Config\File\Collector\Aggregated | $fileSource | |
| \Magento\Framework\View\DesignInterface | $design | |
| ReadFactory | $readFactory | |
| \Magento\Framework\View\Asset\Repository | $assetRepo | |
| \Magento\Framework\Code\Minifier\AdapterInterface | $minifyAdapter | |
| Minification | $minification | |
| RepositoryMap | $repositoryMap |
Definition at line 131 of file Config.php.
| getBaseConfig | ( | ) |
Get base RequireJs configuration necessary for working with Magento application
Definition at line 227 of file Config.php.
|
protected |
Definition at line 283 of file Config.php.
| getConfigFileRelativePath | ( | ) |
Get path to config file relative to directory, where all config files with different context are located
Definition at line 187 of file Config.php.
| getMapFileRelativePath | ( | ) |
Get path to map file
Definition at line 275 of file Config.php.
| getMinResolverCode | ( | ) |
| getMinResolverRelativePath | ( | ) |
Get path to '.min' files resolver relative to config files directory
Definition at line 242 of file Config.php.
| getMixinsFileRelativePath | ( | ) |
Get path to config file relative to directory, where all config files with different context are located
Definition at line 197 of file Config.php.
| getRequireJsFileRelativePath | ( | ) |
Get path to config file relative to directory, where all config files with different context are located
Definition at line 217 of file Config.php.
| getUrlResolverFileRelativePath | ( | ) |
Get path to URL map resover file
Definition at line 255 of file Config.php.
| const BUNDLE_JS_DIR = 'js/bundle' |
File name of StaticJs
Definition at line 63 of file Config.php.
| config |
Definition at line 74 of file Config.php.
| const CONFIG_FILE_NAME = 'requirejs-config.js' |
Definition at line 28 of file Config.php.
| const DIR_NAME = '_requirejs' |
Name of sub-directory where generated RequireJs config is placed
Definition at line 23 of file Config.php.
| const FULL_CONFIG_TEMPLATE |
Template for combined RequireJs config file
Definition at line 68 of file Config.php.
| const MAP_FILE_NAME = 'requirejs-map.js' |
Definition at line 53 of file Config.php.
| const MIN_RESOLVER_FILENAME = 'requirejs-min-resolver.js' |
File name of minified files resolver
Definition at line 48 of file Config.php.
| const MIXINS_FILE_NAME = 'mage/requirejs/mixins.js' |
Definition at line 33 of file Config.php.
| const PARTIAL_CONFIG_TEMPLATE |
Template for wrapped partial config
Definition at line 79 of file Config.php.
| const REQUIRE_JS_FILE_NAME = 'requirejs/require.js' |
Definition at line 38 of file Config.php.
| const STATIC_FILE_NAME = 'mage/requirejs/static.js' |
File name of StaticJs
Definition at line 43 of file Config.php.
| const URL_RESOLVER_FILE_NAME = 'mage/requirejs/baseUrlResolver.js' |
File name of BaseUrlInterceptorJs
Definition at line 58 of file Config.php.