Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GenerationDirectoryAccessException.php
Go to the documentation of this file.
1 <?php
7 
11 
16 {
20  public function __construct(Phrase $phrase = null, \Exception $cause = null, $code = 0)
21  {
22  $phrase = $phrase ?: new Phrase(
23  'Command line user does not have read and write permissions on '
24  . $this->getDefaultDirectoryPath(DirectoryList::GENERATED) . ' directory. '
25  . 'Please address this issue before using Magento command line.'
26  );
27 
28  parent::__construct($phrase, $cause, $code);
29  }
30 
37  private function getDefaultDirectoryPath($code)
38  {
40  $result = '';
41 
42  if (isset($config[$code][DirectoryList::PATH])) {
44  }
45 
46  return $result;
47  }
48 }
$config
Definition: fraud_order.php:17
$code
Definition: info.phtml:12