1 |
|
2 |
|
3 | /**
|
4 | * adonis-framework
|
5 | *
|
6 | * (c) Harminder Virk <virk@adonisjs.com>
|
7 | *
|
8 | * For the full copyright and license information, please view the LICENSE
|
9 | * file that was distributed with this source code.
|
10 | */
|
11 |
|
12 | const ServiceProvider = require('adonis-fold').ServiceProvider
|
13 |
|
14 | class EventProvider extends ServiceProvider {
|
15 |
|
16 | * register () {
|
17 | this.app.singleton('Adonis/Src/Event', function (app) {
|
18 | const Event = require('../src/Event')
|
19 | const Config = app.use('Adonis/Src/Config')
|
20 | const Helpers = app.use('Adonis/Src/Helpers')
|
21 | return new Event(Config, Helpers)
|
22 | })
|
23 | }
|
24 | }
|
25 |
|
26 | module.exports = EventProvider
|