Version 5.1 - All the GraphQL #32
@ -32,8 +32,11 @@ use Monolog\Handler\RotatingFileHandler;
|
|||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
use Psr\SimpleCache\CacheInterface;
|
use Psr\SimpleCache\CacheInterface;
|
||||||
|
|
||||||
define('APP_DIR', __DIR__);
|
if ( ! defined('APP_DIR'))
|
||||||
define('TEMPLATE_DIR', APP_DIR . '/templates');
|
{
|
||||||
|
define('APP_DIR', __DIR__);
|
||||||
|
define('TEMPLATE_DIR', APP_DIR . '/templates');
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// Setup DI container
|
// Setup DI container
|
||||||
|
@ -252,12 +252,12 @@ class FormGeneratorTest extends AnimeClientTestCase {
|
|||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$this->generator = new FormGenerator($this->container);
|
$this->generator = FormGenerator::new($this->container);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSanity(): void
|
public function testSanity(): void
|
||||||
{
|
{
|
||||||
$generator = new FormGenerator($this->container);
|
$generator = FormGenerator::new($this->container);
|
||||||
$this->assertInstanceOf(FormGenerator::class, $generator);
|
$this->assertInstanceOf(FormGenerator::class, $generator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,12 +26,12 @@ class MenuGeneratorTest extends AnimeClientTestCase {
|
|||||||
|
|
||||||
public function setUp(): void {
|
public function setUp(): void {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->generator = new MenuGenerator($this->container);
|
$this->generator = MenuGenerator::new($this->container);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSanity()
|
public function testSanity()
|
||||||
{
|
{
|
||||||
$generator = new MenuGenerator($this->container);
|
$generator = MenuGenerator::new($this->container);
|
||||||
$this->assertInstanceOf(MenuGenerator::class, $generator);
|
$this->assertInstanceOf(MenuGenerator::class, $generator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,9 +40,8 @@ return static function(array $config_array = []) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Create Html helper Object
|
// Create Html helper Object
|
||||||
$container->set('html-helper', static function() {
|
$container->set('html-helper', fn() => (new HelperLocatorFactory)->newInstance());
|
||||||
return (new HelperLocatorFactory)->newInstance();
|
$container->set('component-helper', fn() => (new HelperLocatorFactory)->newInstance());
|
||||||
});
|
|
||||||
|
|
||||||
return $container;
|
return $container;
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user