@@ -66,7 +66,7 @@ |
||
| 66 | 66 | public function register(): void |
| 67 | 67 | { |
| 68 | 68 | $this->app->bind(AdapterInterface::class, OpenSSL::class); |
| 69 | - $this->app->bind(Encryption::class, function (ContainerInterface $app) { |
|
| 69 | + $this->app->bind(Encryption::class, function(ContainerInterface $app) { |
|
| 70 | 70 | $e = new Encryption($app->get(AdapterInterface::class)); |
| 71 | 71 | $e->setSecret($app->get(Config::class)->get('security.encryption.key', '')); |
| 72 | 72 | |
@@ -58,8 +58,7 @@ |
||
| 58 | 58 | * @class EncryptionServiceProvider |
| 59 | 59 | * @package Platine\Framework\Service\Provider |
| 60 | 60 | */ |
| 61 | -class EncryptionServiceProvider extends ServiceProvider |
|
| 62 | -{ |
|
| 61 | +class EncryptionServiceProvider extends ServiceProvider { |
|
| 63 | 62 | /** |
| 64 | 63 | * {@inheritdoc} |
| 65 | 64 | */ |