1 | <?php |
||
23 | class ConversationServiceProvider extends ServiceProvider |
||
24 | { |
||
25 | protected $intents = []; |
||
26 | protected $fallbackIntent = FallbackIntent::class; |
||
27 | |||
28 | /** |
||
29 | * Register application services. |
||
30 | */ |
||
31 | 83 | public function register(): void |
|
32 | { |
||
33 | 83 | $this->registerManager(); |
|
34 | 83 | $this->registerSessionManager(); |
|
35 | 83 | } |
|
36 | |||
37 | /** |
||
38 | * Boot application services. |
||
39 | */ |
||
40 | 83 | public function boot(): void |
|
41 | { |
||
42 | /** @var Manager $manager */ |
||
43 | 83 | $manager = $this->app['conversation']; |
|
44 | |||
45 | 83 | foreach ($this->intents as $intent) { |
|
46 | $manager->registerIntent($intent); |
||
47 | } |
||
48 | |||
49 | 83 | $manager->registerFallbackIntent($this->fallbackIntent); |
|
50 | |||
51 | 83 | if (method_exists($this, 'configure')) { |
|
52 | $this->configure(); |
||
|
|||
53 | } |
||
54 | 83 | } |
|
55 | |||
56 | /** |
||
57 | * Load intents from path. |
||
58 | * |
||
59 | * @param string $path |
||
60 | */ |
||
61 | protected function load(string $path): void |
||
80 | |||
81 | private function registerManager(): void |
||
82 | { |
||
89 | |||
90 | private function registerSessionManager(): void |
||
96 | } |
||
97 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.