Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\App\DeploymentConfig\Writer $writer, \Magento\Framework\App\DeploymentConfig\Reader $reader, \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\App\Filesystem\DirectoryList $directoryList, \Magento\Framework\Filesystem\Driver\File $driverFile, \Magento\Store\Model\Config\StoreView $storeView, \Magento\Framework\ShellInterface $shell, UserCollection $userCollection=null, Locale $locale=null) | |
regenerateStatic (OutputInterface $output) | |
cleanupFilesystem ($directoryCodeList) | |
lockStaticResources () | |
Data Fields | |
const | PERMISSIONS_FILE = 0640 |
const | PERMISSIONS_DIR = 0750 |
const | DEFAULT_THEME = 'Magento/blank' |
Protected Member Functions | |
deployStaticContent (OutputInterface $output) | |
compile (OutputInterface $output) | |
changePermissions ($directoryCodeList, $dirPermissions, $filePermissions) | |
Generate static files, compile
Сlear generated/code, generated/metadata/, var/view_preprocessed and pub/static directories
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 23 of file Filesystem.php.
__construct | ( | \Magento\Framework\App\DeploymentConfig\Writer | $writer, |
\Magento\Framework\App\DeploymentConfig\Reader | $reader, | ||
\Magento\Framework\ObjectManagerInterface | $objectManager, | ||
\Magento\Framework\Filesystem | $filesystem, | ||
\Magento\Framework\App\Filesystem\DirectoryList | $directoryList, | ||
\Magento\Framework\Filesystem\Driver\File | $driverFile, | ||
\Magento\Store\Model\Config\StoreView | $storeView, | ||
\Magento\Framework\ShellInterface | $shell, | ||
UserCollection | $userCollection = null , |
||
Locale | $locale = null |
||
) |
\Magento\Framework\App\DeploymentConfig\Writer | $writer | |
\Magento\Framework\App\DeploymentConfig\Reader | $reader | |
\Magento\Framework\ObjectManagerInterface | $objectManager | |
\Magento\Framework\Filesystem | $filesystem | |
\Magento\Framework\App\Filesystem\DirectoryList | $directoryList | |
\Magento\Framework\Filesystem\Driver\File | $driverFile | |
\Magento\Store\Model\Config\StoreView | $storeView | |
\Magento\Framework\ShellInterface | $shell | |
UserCollection | null | $userCollection | |
Locale | null | $locale | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 122 of file Filesystem.php.
|
protected |
Changes permissions for directories by their code.
array | $directoryCodeList | |
int | $dirPermissions | |
int | $filePermissions |
Definition at line 326 of file Filesystem.php.
cleanupFilesystem | ( | $directoryCodeList | ) |
Deletes specified directories by code
array | $directoryCodeList |
Definition at line 283 of file Filesystem.php.
|
protected |
Runs compiler
OutputInterface | $output |
LocalizedException |
exec command is necessary for now to isolate the autoloaders in the compiler from the memory state of this process, which would prevent some classes from being generated
Definition at line 249 of file Filesystem.php.
|
protected |
Deploy static content
OutputInterface | $output |
Definition at line 181 of file Filesystem.php.
lockStaticResources | ( | ) |
Change permissions on static resources
Definition at line 351 of file Filesystem.php.
regenerateStatic | ( | OutputInterface | $output | ) |
Regenerate static
OutputInterface | $output |
Definition at line 154 of file Filesystem.php.
const DEFAULT_THEME = 'Magento/blank' |
Default theme when no theme is stored in configuration
Definition at line 52 of file Filesystem.php.
const PERMISSIONS_DIR = 0750 |
Directory access permissions
Definition at line 47 of file Filesystem.php.
const PERMISSIONS_FILE = 0640 |
File access permissions
Definition at line 35 of file Filesystem.php.