Compare commits
No commits in common. "778cdcc7afd63181787d805639dbc4ffe8b8ae15" and "40f9c246b2e2aa067584448bf6acb22b64da0bea" have entirely different histories.
778cdcc7af
...
40f9c246b2
@ -1,12 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
use function DI\autowire, DI\create, DI\get;
|
|
||||||
|
|
||||||
use Negundo\Client\{ SoftwareConfig, Dump, Task, NegundoMiddleware };
|
|
||||||
|
|
||||||
return [
|
|
||||||
SoftwareConfig::class => create(SoftwareConfig::class)->constructor(getenv('NEGUNDO_HASH'), getenv('NEGUNDO_SERVER')),
|
|
||||||
# NegundoMiddleware::class => create(NegundoMiddleware::class)->constructor(get(SoftwareConfig::class)),
|
|
||||||
Dump::class => create(Dump::class)->constructor(get(SoftwareConfig::class)),
|
|
||||||
Task::class => create(Task::class)->constructor(get(SoftwareConfig::class)),
|
|
||||||
];
|
|
@ -86,7 +86,6 @@ return [
|
|||||||
'routes.list' => function($c) {
|
'routes.list' => function($c) {
|
||||||
return function (ContainerInterface $container) {
|
return function (ContainerInterface $container) {
|
||||||
$router = $container->get(Router::class);
|
$router = $container->get(Router::class);
|
||||||
|
|
||||||
foreach($container->get('routes.middlewares') as $i => $middleware) {
|
foreach($container->get('routes.middlewares') as $i => $middleware) {
|
||||||
if ( $container->has($middleware) ) {
|
if ( $container->has($middleware) ) {
|
||||||
$router->middleware($container->get($middleware));
|
$router->middleware($container->get($middleware));
|
||||||
|
@ -133,7 +133,6 @@ class Lean
|
|||||||
require($path . "event.php"),
|
require($path . "event.php"),
|
||||||
require($path . "http.php"),
|
require($path . "http.php"),
|
||||||
require($path . "language.php"),
|
require($path . "language.php"),
|
||||||
require($path . "negundo.php"),
|
|
||||||
require($path . "routes.php"),
|
require($path . "routes.php"),
|
||||||
# require($path . "security.php"),
|
# require($path . "security.php"),
|
||||||
require($path . "software.php"),
|
require($path . "software.php"),
|
||||||
|
@ -44,8 +44,6 @@ class Routing {
|
|||||||
|
|
||||||
protected Taxus $taxus;
|
protected Taxus $taxus;
|
||||||
|
|
||||||
protected Router $router;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
Session $session,
|
Session $session,
|
||||||
Cookie $cookie,
|
Cookie $cookie,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user