Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
AiInstructorServiceProvider
n/a
0 / 0
n/a
0 / 0
2
n/a
0 / 0
 register
n/a
0 / 0
n/a
0 / 0
2
1<?php
2namespace Apie\AiInstructor;
3
4use Apie\ServiceProviderGenerator\UseGeneratedMethods;
5use Illuminate\Support\ServiceProvider;
6
7/**
8 * This file is generated with apie/service-provider-generator from file: ai_instructor.yaml
9 * @codeCoverageIgnore
10 */
11class AiInstructorServiceProvider extends ServiceProvider
12{
13    use UseGeneratedMethods;
14
15    public function register()
16    {
17        $this->app->singleton(
18            \Apie\AiInstructor\AiInstructor::class,
19            function ($app) {
20                return new \Apie\AiInstructor\AiInstructor(
21                    $app->make(\Apie\SchemaGenerator\SchemaGenerator::class),
22                    $app->make(\Apie\Serializer\Serializer::class),
23                    $app->make(\Apie\AiInstructor\AiClient::class)
24                );
25            }
26        );
27        \Apie\ServiceProviderGenerator\TagMap::register(
28            $this->app,
29            \Apie\AiInstructor\AiInstructor::class,
30            array(
31              0 => 'apie.context',
32            )
33        );
34        $this->app->tag([\Apie\AiInstructor\AiInstructor::class], 'apie.context');
35        $this->app->singleton(
36            \Apie\AiInstructor\AiClient::class,
37            function ($app) {
38                return \Apie\AiInstructor\AiClient::create(
39                    $app->bound('http_client') ? $app->make('http_client') : null,
40                    $this->parseArgument('%apie.ai.base_url%'),
41                    $this->parseArgument('%apie.ai.api_key%')
42                );
43                
44            }
45        );
46        \Apie\ServiceProviderGenerator\TagMap::register(
47            $this->app,
48            \Apie\AiInstructor\AiClient::class,
49            array(
50              0 => 'apie.context',
51            )
52        );
53        $this->app->tag([\Apie\AiInstructor\AiClient::class], 'apie.context');
54        $this->app->singleton(
55            \Apie\AiInstructor\AiPlaygroundCommand::class,
56            function ($app) {
57                return new \Apie\AiInstructor\AiPlaygroundCommand(
58                    $app->make(\Apie\AiInstructor\AiInstructor::class)
59                );
60            }
61        );
62        \Apie\ServiceProviderGenerator\TagMap::register(
63            $this->app,
64            \Apie\AiInstructor\AiPlaygroundCommand::class,
65            array(
66              0 =>
67              array(
68                'name' => 'console.command',
69              ),
70            )
71        );
72        $this->app->tag([\Apie\AiInstructor\AiPlaygroundCommand::class], 'console.command');
73        
74    }
75}