Skip to content

Commit

Permalink
deprecate the genInstance function on the applications
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Jun 30, 2017
1 parent 56c9270 commit 4bdd7c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libraries/src/CMS/Application/CMSApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public function getClientId()
*
* @since 3.2
* @throws \RuntimeException
* @deprecated 5.0 Use the application trough the container of the global application
* @deprecated 5.0 Get the application trough the container of the global application
*/
public static function getInstance($name = null, $prefix = '\JApplication', Container $container = null)
{
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/CMS/Application/CliApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public function __construct(\JInputCli $input = null, Registry $config = null, C
* @return CliApplication
*
* @since 11.1
* @deprecated 5.0 Load the app through the container
* @throws \RuntimeException
* @throws \RuntimeException
* @deprecated 5.0 Get the application trough the container of the global application
*/
public static function getInstance($name = null)
{
Expand Down
5 changes: 3 additions & 2 deletions libraries/src/CMS/Application/WebApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ public function __construct(\JInput $input = null, Registry $config = null, WebC
*
* @return WebApplication
*
* @since 11.3
* @throws \RuntimeException
* @since 11.3
* @throws \RuntimeException
* @deprecated 5.0 Get the application trough the container of the global application
*/
public static function getInstance($name = null)
{
Expand Down

0 comments on commit 4bdd7c5

Please sign in to comment.