Source for file daemon.php

Documentation is available at daemon.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Legacy
  4.  * @subpackage  Application
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. JLog::add('JDaemon has been renamed to JApplicationDaemon.'JLog::WARNING'deprecated');
  13.  
  14. /**
  15.  * Backward Compatability Stub for JApplicationDaemon
  16.  *
  17.  * @package     Joomla.Legacy
  18.  * @subpackage  Application
  19.  * @since       11.1
  20.  * @deprecated  12.3 (Platform) & 4.0 (CMS) - Use JApplicationDaemon instead.
  21.  * @codeCoverageIgnore
  22.  */
  23. class JDaemon extends JApplicationDaemon
  24. {
  25.     /**
  26.      * Class constructor.
  27.      *
  28.      * @param   mixed  $input       An optional argument to provide dependency injection for the application's
  29.      *                               input object.  If the argument is a JInputCli object that object will become
  30.      *                               the application's input object, otherwise a default input object is created.
  31.      * @param   mixed  $config      An optional argument to provide dependency injection for the application's
  32.      *                               config object.  If the argument is a JRegistry object that object will become
  33.      *                               the application's config object, otherwise a default config object is created.
  34.      * @param   mixed  $dispatcher  An optional argument to provide dependency injection for the application's
  35.      *                               event dispatcher.  If the argument is a JEventDispatcher object that object will become
  36.      *                               the application's event dispatcher, if it is null then the default event dispatcher
  37.      *                               will be created based on the application's loadDispatcher() method.
  38.      *
  39.      * @since   11.1
  40.      * @deprecated  12.3 Use JApplicationDaemon instead.
  41.      * @throws  RuntimeException
  42.      */
  43.     public function __construct(JInputCli $input nullJRegistry $config nullJEventDispatcher $dispatcher null)
  44.     {
  45.         JLog::add('JDaemon is deprecated. Use JApplicationDaemon instead.'JLog::WARNING'deprecated');
  46.         parent::__construct($input$config$dispatcher);
  47.     }
  48. }

Documentation generated on Tue, 19 Nov 2013 14:57:42 +0100 by phpDocumentor 1.4.3