File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/Tomgrohl/Laravel/Encryption Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 33namespace Tomgrohl \Laravel \Encryption \Tests ;
44
55use Illuminate \Foundation \Application ;
6+ use Tomgrohl \Laravel \Encryption \Encrypter ;
67use 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}
You can’t perform that action at this time.
0 commit comments