コード例 #1
0
ファイル: daemon.php プロジェクト: adjaika/J3Base
 /**
  * Class constructor.
  *
  * @param   JInputCli         $input       An optional argument to provide dependency injection for the application's
  *                                         input object.  If the argument is a JInputCli object that object will become
  *                                         the application's input object, otherwise a default input object is created.
  * @param   Registry          $config      An optional argument to provide dependency injection for the application's
  *                                         config object.  If the argument is a Registry object that object will become
  *                                         the application's config object, otherwise a default config object is created.
  * @param   JEventDispatcher  $dispatcher  An optional argument to provide dependency injection for the application's
  *                                         event dispatcher.  If the argument is a JEventDispatcher object that object will become
  *                                         the application's event dispatcher, if it is null then the default event dispatcher
  *                                         will be created based on the application's loadDispatcher() method.
  *
  * @since   11.1
  * @deprecated  12.3 Use JApplicationDaemon instead.
  * @throws  RuntimeException
  */
 public function __construct(JInputCli $input = null, Registry $config = null, JEventDispatcher $dispatcher = null)
 {
     JLog::add('JDaemon is deprecated. Use JApplicationDaemon instead.', JLog::WARNING, 'deprecated');
     parent::__construct($input, $config, $dispatcher);
 }
コード例 #2
0
 /**
  * Allows public access to protected method.
  *
  * @param   boolean  $restart  True to restart the daemon on exit.
  *
  * @return  void
  *
  * @since   11.1
  */
 public function shutdown($restart = false)
 {
     return parent::shutdown($restart);
 }