| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 3 | public function registerEmailEngine() |
|
| 37 | { |
||
| 38 | 3 | $app = $this->app; |
|
| 39 | |||
| 40 | $app->bind('email.compiler', function () use ($app) { |
||
| 41 | 2 | $cache = $app['config']['view.compiled']; |
|
| 42 | 2 | $css = $app['config']['view.emails.css_files']; |
|
| 43 | |||
| 44 | 2 | return new Compiler($app['files'], $cache, $css); |
|
| 45 | 3 | }); |
|
| 46 | |||
| 47 | 3 | $app['view']->addExtension('email.php', 'email', function () use ($app) { |
|
| 48 | 1 | return new CompilerEngine($app['email.compiler']); |
|
| 49 | 3 | }); |
|
| 50 | 3 | } |
|
| 51 | |||
| 63 | } |