private function getApiUserRole()
    {
        $apiUserRole = null;

        $container = $this->_context->getApplication()->getContainer();
        if ($container->hasParameter('bbapp.securitycontext.role.apiuser')) {
            $apiUserRole = $container->getParameter('bbapp.securitycontext.role.apiuser');

            if ($container->hasParameter('bbapp.securitycontext.roles.prefix')) {
                $apiUserRole = $container->getParameter('bbapp.securitycontext.roles.prefix') . $apiUserRole;
            }
        }

        return $apiUserRole;
    }
private function getApiUserRole()
    {
        $apiUserRole = null;

        $container = $this->_context->getApplication()->getContainer();
        if ($container->hasParameter('bbapp.securitycontext.role.apiuser')) {
            $apiUserRole = $container->getParameter('bbapp.securitycontext.role.apiuser');

            if ($container->hasParameter('bbapp.securitycontext.roles.prefix')) {
                $apiUserRole = $container->getParameter('bbapp.securitycontext.roles.prefix') . $apiUserRole;
            }
        }

        return $apiUserRole;
    }
private function getApiUserRole ( ) { $ apiUserRole = null ; $ container = $ this -> _context -> getApplication ( ) -> getContainer ( ) ; if ( $ container -> hasParameter ( 'bbapp.securitycontext.role.apiuser' ) ) { $ apiUserRole = $ container -> getParameter ( 'bbapp.securitycontext.role.apiuser' ) ; if ( $ container -> hasParameter ( 'bbapp.securitycontext.roles.prefix' ) ) { $ apiUserRole = $ container -> getParameter ( 'bbapp.securitycontext.roles.prefix' ) . $ apiUserRole ; } } return $ apiUserRole ; }
Gets the API user role from container
@return string
Gets the API user role from container