Skip to content

Commit

Permalink
Now using the newConfig() method of the Jaxon\Utils\Traits\Config trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
feuzeu committed May 28, 2017
1 parent 1168403 commit 63f8687
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Jaxon.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Jaxon\AjaxBundle;

use Jaxon\Utils\Config;

use Symfony\Component\HttpFoundation\Response as HttpResponse;

class Jaxon
Expand Down Expand Up @@ -57,11 +55,13 @@ protected function jaxonSetup()
// The application web dir
$baseDir = $_SERVER['DOCUMENT_ROOT'];

$sentry = jaxon()->sentry();
// Jaxon library settings
$jaxon = jaxon();
$sentry = $jaxon->sentry();
$jaxon->setOptions($this->configs, 'lib');

// Set the config options
jaxon()->setOptions($this->configs, 'lib');
$this->appConfig = new Config();
/// Jaxon application settings
$this->appConfig = $jaxon->newConfig();
$this->appConfig->setOptions($this->configs, 'app');

// Jaxon library default settings
Expand Down

0 comments on commit 63f8687

Please sign in to comment.