Skip to content

Commit

Permalink
[4.0] Deprecate Table::getInstance (#19529)
Browse files Browse the repository at this point in the history
* Deprecate Table::getInstance

* Also deprecate addIncludePath

* Typo
  • Loading branch information
laoneo authored and wilsonge committed Feb 4, 2018
1 parent 429b350 commit 8377c35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/src/Table/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ public function getFields($reload = false)
*
* @return Table|boolean A Table object if found or boolean false on failure.
*
* @since 11.1
* @since 11.1
* @deprecated 5.0 Use the MvcFactory instead
*/
public static function getInstance($type, $prefix = 'JTable', $config = array())
{
Expand Down Expand Up @@ -318,7 +319,8 @@ public static function getInstance($type, $prefix = 'JTable', $config = array())
*
* @return array An array of filesystem paths to find Table classes in.
*
* @since 11.1
* @since 11.1
* @deprecated 5.0 Should not be used anymore as tables are loaded through the MvcFactory
*/
public static function addIncludePath($path = null)
{
Expand Down

0 comments on commit 8377c35

Please sign in to comment.