mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
32 lines
656 B
PHP
32 lines
656 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\GraphQl\Model\Query;
|
|
|
|
use Magento\Authorization\Model\UserContextInterface;
|
|
|
|
/**
|
|
* Context factory
|
|
*/
|
|
interface ContextFactoryInterface
|
|
{
|
|
/**
|
|
* Create Context object
|
|
*
|
|
* @param UserContextInterface|null $userContext
|
|
* @return ContextInterface
|
|
*/
|
|
public function create(?UserContextInterface $userContext = null): ContextInterface;
|
|
|
|
/**
|
|
* Retrieve cached Context object
|
|
*
|
|
* @return ContextInterface
|
|
*/
|
|
public function get(): ContextInterface;
|
|
}
|