Joomla Platform  13.1
Documentation des API du framework Joomla Platform
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Pages
cli.php
Aller à la documentation de ce fichier.
1 <?php
2 /**
3  * @package Joomla.Platform
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 /**
13  * Deprecated class placeholder. You should use JApplicationCli instead.
14  *
15  * @package Joomla.Platform
16  * @subpackage Application
17  * @since 11.1
18  * @deprecated 12.3 (Platform) & 4.0 (CMS) - Use JApplicationCli instead.
19  * @codeCoverageIgnore
20  */
21 class JCli extends JApplicationCli
22 {
23  /**
24  * Class constructor.
25  *
26  * @param mixed $input An optional argument to provide dependency injection for the application's
27  * input object. If the argument is a JInputCli object that object will become
28  * the application's input object, otherwise a default input object is created.
29  * @param mixed $config An optional argument to provide dependency injection for the application's
30  * config object. If the argument is a JRegistry object that object will become
31  * the application's config object, otherwise a default config object is created.
32  * @param mixed $dispatcher An optional argument to provide dependency injection for the application's
33  * event dispatcher. If the argument is a JEventDispatcher object that object will become
34  * the application's event dispatcher, if it is null then the default event dispatcher
35  * will be created based on the application's loadDispatcher() method.
36  *
37  * @see JApplicationBase::loadDispatcher()
38  * @since 11.1
39  * @deprecated 12.3 (Platform) & 4.0 (CMS) - Use JApplicationCli instead.
40  */
41  public function __construct(JInputCli $input = null, JRegistry $config = null, JEventDispatcher $dispatcher = null)
42  {
43  JLog::add('JCli is deprecated. Use JApplicationCli instead.', JLog::WARNING, 'deprecated');
44  parent::__construct($input, $config, $dispatcher);
45  }
46 }