/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Hook
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Hook/HookDispatcherAwareTrait.php (1783B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
namespace PrestaShop\PrestaShop\Core\Hook;
/**
* Trait EventDispatcherAwareTrait.
*
* @deprecated
*/
trait HookDispatcherAwareTrait
{
/**
* @var HookDispatcherInterface
*/
protected $hookDispatcher;
/**
* Set hook dispatcher.
*
* @param HookDispatcherInterface $hookDispatcher
*/
public function setHookDispatcher(HookDispatcherInterface $hookDispatcher)
{
@trigger_error('HookDispatcherAwareTrait is deprecated as of 1.7.5.1 and will be removed in the next major version. If you need to inject HookDispatcherInterface use the constructor not setter injection.', E_USER_DEPRECATED);
$this->hookDispatcher = $hookDispatcher;
}
}