JWT Framework
Search…
Symfony Console
To enable the commands on a Symfony application, you have to install and add the associated bundle into your kernel:
1
composer require web-token/jwt-console
2
composer require web-token/jwt-bundle
Copied!
If you use Symfony Flex, you have nothing to do. Otherwise you have to enable to bundle.
1
// app/AppKernel.php
2
3
class AppKernel extends Kernel
4
{
5
public function registerBundles()
6
{
7
$bundles = [
8
...
9
new Jose\Bundle\JwtFramework\JwtFrameworkBundle(),
10
];
11
12
return $bundles;
13
}
14
...
15
}
Copied!
Then execute your Symfony Console command to use the command provided by this component:
1
./bin/console
Copied!
Last modified 3yr ago
Copy link