| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function register() |
||
| 35 | { |
||
| 36 | $this->core->bind(Connection::class, function (Core $core) { |
||
| 37 | return new Connection( |
||
| 38 | $core['connection.channel'], |
||
| 39 | $core['connection.server'], |
||
| 40 | $core['connection.port'] |
||
| 41 | ); |
||
| 42 | }); |
||
| 43 | |||
| 44 | $this->core->bind(User::class, function (Core $core) { |
||
| 45 | return new User( |
||
| 46 | $core['user.nickname'], |
||
| 47 | $core['user.username'], |
||
| 48 | $core['user.realname'] |
||
| 49 | ); |
||
| 50 | }); |
||
| 51 | |||
| 52 | $this->core->singleton(Client::class); |
||
| 53 | } |
||
| 54 | |||
| 75 |