Skip to content

Commit ad8194f

Browse files
committed
Removed router pattern in lumen
1 parent e302517 commit ad8194f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/Folklore/GraphQL/LumenServiceProvider.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@ protected function getRouter()
1414
return $this->app;
1515
}
1616

17+
/**
18+
* Bootstrap any application services.
19+
*
20+
* @return void
21+
*/
22+
public function boot()
23+
{
24+
$this->bootPublishes();
25+
26+
$this->bootTypes();
27+
28+
$this->bootSchemas();
29+
30+
$this->bootRouter();
31+
}
32+
1733
/**
1834
* Bootstrap publishes
1935
*

src/Folklore/GraphQL/ServiceProvider.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ public function boot()
2929

3030
$this->bootSchemas();
3131

32+
$this->bootRouter();
33+
}
34+
35+
/**
36+
* Bootstrap router
37+
*
38+
* @return void
39+
*/
40+
protected function bootRouter()
41+
{
3242
if (config('graphql.routes')) {
3343
$router = $this->getRouter();
3444
include __DIR__.'/routes.php';

0 commit comments

Comments
 (0)