getEnvironment() публичный Метод

Get the current environment.
public getEnvironment ( ) : string
Результат string
Пример #1
0
 /**
  * Constructor.
  *
  * @param ChannelManager  $channelManager
  * @param Application     $application
  * @param ConfigInterface $config
  */
 public function __construct(ChannelManager $channelManager, Application $application, ConfigInterface $config)
 {
     $this->environment = $application->getEnvironment();
     $this->channelManager = $channelManager;
     $this->config = $config;
 }