Skip to content

Commit

Permalink
Deprecate isCli function
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Jun 4, 2017
1 parent a5d0fc0 commit 5c835c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion libraries/src/CMS/Application/CMSApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -1187,9 +1187,12 @@ public function checkToken($method = 'post')
/**
* Flag if the application instance is a CLI or web based application.
*
* Helper function, you should use the native PHP functions to detect if it is a CLI application.
*
* @return boolean
*
* @since __DEPLOY_VERSION__
* @since __DEPLOY_VERSION__
* @deprecated 5.0 Will be removed without replacements
*/
public function isCli()
{
Expand Down
5 changes: 4 additions & 1 deletion libraries/src/CMS/Application/CMSApplicationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,12 @@ public function getSession();
/**
* Flag if the application instance is a CLI or web based application.
*
* Helper function, you should use the native PHP functions to detect if it is a CLI application.
*
* @return boolean
*
* @since __DEPLOY_VERSION__
* @since __DEPLOY_VERSION__
* @deprecated 5.0 Will be removed without replacements
*/
public function isCli();

Expand Down
5 changes: 4 additions & 1 deletion libraries/src/CMS/Application/CliApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,12 @@ public function getSession()
/**
* Flag if the application instance is a CLI or web based application.
*
* Helper function, you should use the native PHP functions to detect if it is a CLI application.
*
* @return boolean
*
* @since __DEPLOY_VERSION__
* @since __DEPLOY_VERSION__
* @deprecated 5.0 Will be removed without replacements
*/
public function isCli()
{
Expand Down

0 comments on commit 5c835c5

Please sign in to comment.