Skip to content

Commit

Permalink
The framework makes sure that the controller setup() method is called
Browse files Browse the repository at this point in the history
once.
  • Loading branch information
feuzeu committed Nov 11, 2016
1 parent 0c057ad commit a573876
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Jaxon.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Jaxon\AjaxBundle;

class Jaxon extends \Jaxon\Response\Response
class Jaxon
{
use \Jaxon\Framework\JaxonTrait;

Expand Down Expand Up @@ -51,13 +51,6 @@ public function __construct($kernel, $template, $debug)
*/
public function setup()
{
// This function should be called only once
if(($this->setupCalled))
{
return;
}
$this->setupCalled = true;

// The application URL
$baseUrl = $_SERVER['SERVER_NAME'];
// The application web dir
Expand Down

0 comments on commit a573876

Please sign in to comment.