Skip to content

Commit

Permalink
Update ApiApplication.php (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge authored Jul 4, 2017
1 parent 40ef3a5 commit 8e622ca
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions libraries/src/CMS/Application/ApiApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
*/
final class ApiApplication extends CMSApplication
{
/**
* The API router.
*
* @var ApiRouter
* @since __DEPLOY_VERSION__
*/
protected $router;

/**
* Class constructor.
*
Expand Down Expand Up @@ -62,12 +54,6 @@ public function __construct(\JInput $input = null, Registry $config = null, WebC

// Set the root in the URI based on the application name
\JUri::root(null, str_ireplace('/' . $this->getName(), '', \JUri::base(true)));

/**
* Setup the router
* TODO: Router class not ready
* $this->router = new ApiRouter();
*/
}


Expand Down Expand Up @@ -163,7 +149,7 @@ protected function route()
*
* @since __DEPLOY_VERSION__
*/
public static function getApiRouter()
public function getApiRouter()
{
return JFactory::getContainer()->get('ApiRouter');
}
Expand Down

0 comments on commit 8e622ca

Please sign in to comment.