|
@@ -24,7 +24,7 @@ discard block |
|
|
block discarded – undo |
|
24
|
24
|
#[Middleware(name: 'App\Containers\Demo\Middleware\SecondMiddleware')] |
|
25
|
25
|
#[AfterMiddleware(name: 'App\Containers\Demo\Middleware\FirstMiddleware')] |
|
26
|
26
|
#[AfterMiddleware(name: 'App\Containers\Demo\Middleware\SecondMiddleware')] |
|
27
|
|
- public function attributes(stdClass $std, stdClass $asd,stdClass $asw,string $name = 'John'): void |
|
|
27
|
+ public function attributes(stdClass $std, stdClass $asd, stdClass $asw, string $name = 'John'): void |
|
28
|
28
|
{ |
|
29
|
29
|
data([ |
|
30
|
30
|
"content" => cache(['mainpage', $this->cache_time['templates']]) ?? view(["index", 'mainpage']), |
|
@@ -38,13 +38,13 @@ discard block |
|
|
block discarded – undo |
|
38
|
38
|
// dump(Rudra::get('factory')); |
|
39
|
39
|
// dump(Rudra::get('callable')); |
|
40
|
40
|
|
|
41
|
|
- Rudra::set(['one', [new StdFactory()]]); |
|
|
41
|
+ Rudra::set(['one', [new StdFactory()]]); |
|
42
|
42
|
dump(Rudra::get('one')); |
|
43
|
43
|
|
|
44
|
|
- Rudra::set(['two', [fn() => (new StdFactory())->create()]]); |
|
|
44
|
+ Rudra::set(['two', [fn() => (new StdFactory())->create()]]); |
|
45
|
45
|
dump(Rudra::get('two')); |
|
46
|
46
|
|
|
47
|
|
- Rudra::set(['three', [StdFactory::class]]); |
|
|
47
|
+ Rudra::set(['three', [StdFactory::class]]); |
|
48
|
48
|
dump(Rudra::get('three')); |
|
49
|
49
|
|
|
50
|
50
|
render("layout", data()); |