Skip to content

Commit

Permalink
Check if manager_type option is defined before trying to get it in co…
Browse files Browse the repository at this point in the history
…mpiler pass (#110)
  • Loading branch information
cezarystepkowski authored and markitosgv committed Sep 17, 2018
1 parent c34c4c9 commit 8843ae0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function process(ContainerBuilder $container)
{
$config = $container->getExtensionConfig('gesdinet_jwt_refresh_token')[0];

$mappingPass = 'mongodb' === strtolower($config['manager_type'])
$mappingPass = isset($config['manager_type']) && 'mongodb' === strtolower($config['manager_type'])
? $this->getODMCompilerPass($config)
: $this->getORMCompilerPass($config);

Expand Down

0 comments on commit 8843ae0

Please sign in to comment.