Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ServiceShellUser.php
Go to the documentation of this file.
1 <?php
7 
9 {
13  const DEFAULT_USER = 'cron';
14 
21  public function get($userFromArgument = false)
22  {
23  if ($userFromArgument) {
24  return $userFromArgument;
25  }
26 
27  $user = "echo \$USER";
28  if ($user) {
29  return $user;
30  }
31 
32  return self::DEFAULT_USER;
33  }
34 }
$user
Definition: dummy_user.php:13