for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jaxon\Container\Traits;
use Jaxon\Jaxon;
use Jaxon\App\App;
use Jaxon\App\Bootstrap;
use Jaxon\Plugin\Manager as PluginManager;
use Jaxon\Request\Handler\Handler as RequestHandler;
use Jaxon\Response\Manager as ResponseManager;
use Jaxon\Ui\View\Manager as ViewManager;
use Jaxon\Utils\Config\Reader as ConfigReader;
trait AppTrait
{
/**
* Register the values into the container
*
* @return void
*/
private function registerApp()
// Jaxon App
$this->set(App::class, function($c) {
set()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
set(App::class, function($c) {
return new App($c->g(Jaxon::class), $c->g(ResponseManager::class), $c->g(ConfigReader::class));
});
// Jaxon App bootstrap
$this->set(Bootstrap::class, function($c) {
return new Bootstrap($c->g(Jaxon::class), $c->g(PluginManager::class),
$c->g(ViewManager::class), $c->g(RequestHandler::class));
}
* Get the App instance
* @return App
public function getApp()
return $this->g(App::class);
g()
return $this->/** @scrutinizer ignore-call */ g(App::class);
* Get the App bootstrap
* @return Bootstrap
public function getBootstrap()
return $this->g(Bootstrap::class);