Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Kosiarski authored Feb 28, 2019
1 parent 276028f commit a05ecfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ Simple example:
namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstarctController;
use MaciejKosiarski\MonologFactoryBundle\Service\JwtKeeper;
use MaciejKosiarski\JwtKeeperBundle\Service\JwtKeeper;

class AppController extends AbstarctController
{
public function index()
{
$jwtKeeper = new JwtKeeper('http://super-service/jwt', 'api', 'superpass');
$jwtKeeper = new JwtKeeper('http://super-service/jwt', 'username', 'superpass');
//return JWT in string
$jwtKeeper->getToken();
//return JWT in object
Expand All @@ -74,4 +74,4 @@ class AppController extends AbstarctController
}
```

Services: [_JwtKeeper_](../master/Service/JwtKeeper.php), [_JwtProvider_](../master/Service/JwtProvider.php), [_JwtStorage_](../master/Service/JwtStorage.php), [_Jwt_](../master/Service/Jwt.php)
Services: [_JwtKeeper_](../master/Service/JwtKeeper.php), [_JwtProvider_](../master/Service/JwtProvider.php), [_JwtStorage_](../master/Service/JwtStorage.php), [_Jwt_](../master/Service/Jwt.php)

0 comments on commit a05ecfa

Please sign in to comment.