Skip to content

Commit 1e9b14b

Browse files
committed
Fix alias
1 parent 5406a04 commit 1e9b14b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Tomgrohl/Laravel/Encryption/EncryptionServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public function register()
2828
return $encrypter;
2929
});
3030

31-
$this->app->alias(Encrypter::class, 'encrypter');
31+
$this->app->alias('encrypter', Encrypter::class);
3232
}
3333
}

src/Tomgrohl/Laravel/Encryption/Tests/EncryptionServiceProviderTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Tomgrohl\Laravel\Encryption\Tests;
44

55
use Illuminate\Foundation\Application;
6+
use Tomgrohl\Laravel\Encryption\Encrypter;
67
use Tomgrohl\Laravel\Encryption\EncryptionServiceProvider;
78

89
/**
@@ -15,10 +16,11 @@ class EncryptionServiceProviderTest extends TestCase
1516
public function testProvider()
1617
{
1718
$application = new Application();
19+
1820
$provider = new EncryptionServiceProvider($application);
1921
$provider->register();
2022

2123
$this->assertTrue($application->bound('encrypter'));
22-
$this->assertTrue($application->isAlias('encrypter'));
24+
$this->assertTrue($application->isAlias(Encrypter::class));
2325
}
2426
}

0 commit comments

Comments
 (0)