File tree 1 file changed +12
-3
lines changed 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 5
5
use Auth0 \JWTAuthBundle \DependencyInjection \Auth0Extension ;
6
6
use Symfony \Component \HttpKernel \Bundle \Bundle ;
7
7
use Auth0 \SDK \API \ApiClient ;
8
+ use Auth0 \SDK \API \InformationHeaders ;
8
9
use Symfony \Component \HttpKernel \Kernel ;
9
10
10
11
class JWTAuthBundle extends Bundle
11
12
{
12
- const SDK_VERSION = "1.2.1 " ;
13
+ const SDK_VERSION = "1.2.2 " ;
13
14
14
15
public function __construct () {
15
- ApiClient::addHeaderInfoMeta ('Symfony: ' .Kernel::VERSION );
16
- ApiClient::addHeaderInfoMeta ('SDK: ' .self ::SDK_VERSION );
16
+ $ oldInfoHeaders = ApiClient::getInfoHeadersData ();
17
+
18
+ if ($ oldInfoHeaders ) {
19
+ $ infoHeaders = InformationHeaders::Extend ($ oldInfoHeaders );
20
+
21
+ $ infoHeaders ->setEnvironment ('Symfony ' , Kernel::VERSION );
22
+ $ infoHeaders ->setPackage ('jwt-auth-bundle ' , self ::SDK_VERSION );
23
+
24
+ ApiClient::setInfoHeadersData ($ infoHeaders );
25
+ }
17
26
}
18
27
19
28
public function getAlias ()
You can’t perform that action at this time.
0 commit comments