@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php namespace VojtaSvoboda\UserExportPdf; |
2 | 2 | |
3 | -use Backend; |
|
4 | 3 | use Event; |
5 | 4 | use Lang; |
6 | 5 | use RainLab\User\Controllers\Users as UserController; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | public function boot() |
27 | 27 | { |
28 | 28 | UserController::extend(function($controller) { |
29 | - $controller->implement[] = 'VojtaSvoboda.UserExportPdf.Behaviors.PdfExportBehavior'; |
|
29 | + $controller->implement[ ] = 'VojtaSvoboda.UserExportPdf.Behaviors.PdfExportBehavior'; |
|
30 | 30 | }); |
31 | 31 | |
32 | 32 | // extend user listing |
@@ -19,7 +19,7 @@ |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | $templateCode = Config::get('vojtasvoboda.userexportpdf::config.template', 'rainlab::user'); |
22 | - $data = ['user' => $user]; |
|
22 | + $data = [ 'user' => $user ]; |
|
23 | 23 | $params = [ |
24 | 24 | 'filename' => Str::slug($user->name . '-' . $user->username) . ".pdf", |
25 | 25 | 'content_disposition' => 'attachment', |