Skip to content

Commit

Permalink
Adapt to getItem() change in core
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Oct 29, 2020
1 parent 7d78b20 commit 2d25896
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/AdminController.php
Expand Up @@ -37,7 +37,7 @@ public function indexAction( Request $request ) : \Symfony\Component\HttpFoundat

$user = $this->get( 'security.token_storage' )->getToken()->getUser();
$siteId = current( array_reverse( explode( '.', trim( $user->getSiteId(), '.' ) ) ) );
$siteCode = ( $siteId ? $siteManager->getItem( $siteId )->getCode() : 'default' );
$siteCode = ( $siteId ? $siteManager->get( $siteId )->getCode() : 'default' );

$locale = $user->getLanguageId() ?: ( $this->container->hasParameter( 'locale' ) ? $this->container->getParameter( 'locale' ) : 'en' );

Expand Down
2 changes: 1 addition & 1 deletion Service/Context.php
Expand Up @@ -223,7 +223,7 @@ protected function addUserGroups( \Aimeos\MShop\Context\Item\Iface $context )
$context->setGroupIds( function() use ( $context, $userid )
{
$manager = \Aimeos\MShop::create( $context, 'customer' );
return $manager->getItem( $userid, array( 'customer/group' ) )->getGroups();
return $manager->get( $userid, array( 'customer/group' ) )->getGroups();
} );
}

Expand Down

0 comments on commit 2d25896

Please sign in to comment.