1 <?php
2 /**
3 * @package Joomla.Platform
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 /**
15 * Deprecated class placeholder. You should use JApplicationCli instead.
16 *
17 * @since 1.7
18 * @deprecated 2.5 Use JApplicationCli instead.
19 */
20 class JCli extends JApplicationCli
21 {
22 /**
23 * Class constructor.
24 *
25 * @param JInputCli $input An optional argument to provide dependency injection for the application's
26 * input object. If the argument is a JInputCli object that object will become
27 * the application's input object, otherwise a default input object is created.
28 * @param Registry $config An optional argument to provide dependency injection for the application's
29 * config object. If the argument is a Registry object that object will become
30 * the application's config object, otherwise a default config object is created.
31 * @param JEventDispatcher $dispatcher An optional argument to provide dependency injection for the application's
32 * event dispatcher. If the argument is a JEventDispatcher object that object will become
33 * the application's event dispatcher, if it is null then the default event dispatcher
34 * will be created based on the application's loadDispatcher() method.
35 *
36 * @see JApplicationBase::loadDispatcher()
37 * @since 1.7
38 * @deprecated 2.5 Use JApplicationCli instead.
39 */
40 public function __construct(JInputCli $input = null, Registry $config = null, JEventDispatcher $dispatcher = null)
41 {
42 JLog::add('JCli is deprecated. Use JApplicationCli instead.', JLog::WARNING, 'deprecated');
43 parent::__construct($input, $config, $dispatcher);
44 }
45 }
46