Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (Filesystem $filesystem, BundleInterfaceFactory $bundleFactory, BundleConfig $bundleConfig, Files $files) | |
deploy ($area, $theme, $locale) | |
Data Fields | |
const | BUNDLE_JS_DIR = 'js/bundle' |
const | ASSET_TYPE_JS = 'js' |
const | ASSET_TYPE_HTML = 'html' |
Static Public Attributes | |
static | $availableTypes |
Deploy bundled static files service
Read all static files from deployed packages and generate bundles. Bundle Factory can be configured to use bundle format different from RequireJS used out of the box
Definition at line 23 of file Bundle.php.
__construct | ( | Filesystem | $filesystem, |
BundleInterfaceFactory | $bundleFactory, | ||
BundleConfig | $bundleConfig, | ||
Files | $files | ||
) |
Bundle constructor
Filesystem | $filesystem | |
BundleInterfaceFactory | $bundleFactory | |
BundleConfig | $bundleConfig | |
Files | $files |
Definition at line 87 of file Bundle.php.
deploy | ( | $area, | |
$theme, | |||
$locale | |||
) |
Deploy bundles for the given area, theme and locale
string | $area | |
string | $theme | |
string | $locale |
Definition at line 107 of file Bundle.php.
|
static |
Definition at line 74 of file Bundle.php.
const ASSET_TYPE_HTML = 'html' |
Matched file extension name for template files
Definition at line 38 of file Bundle.php.
const ASSET_TYPE_JS = 'js' |
Matched file extension name for JavaScript files
Definition at line 33 of file Bundle.php.
const BUNDLE_JS_DIR = 'js/bundle' |
Path to package subdirectory where bundle files are located
Definition at line 28 of file Bundle.php.