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