Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license ..
Decoded Output download
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Model\Indexer\Product\Price;
use Magento\Customer\Api\Data\GroupInterface;
use Magento\Framework\Indexer\IndexerRegistry;
/**
* Invalidate price index
*/
class InvalidateIndex implements UpdateIndexInterface
{
/**
* @var IndexerRegistry
*/
private $indexerRegistry;
/**
* Constructor
*
* @param IndexerRegistry $indexerRegistry
*/
public function __construct(
IndexerRegistry $indexerRegistry
) {
$this->indexerRegistry = $indexerRegistry;
}
/**
* {@inheritdoc}
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function update(GroupInterface $group, $isGroupNew)
{
$this->indexerRegistry->get(Processor::INDEXER_ID)->invalidate();
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Model\Indexer\Product\Price;
use Magento\Customer\Api\Data\GroupInterface;
use Magento\Framework\Indexer\IndexerRegistry;
/**
* Invalidate price index
*/
class InvalidateIndex implements UpdateIndexInterface
{
/**
* @var IndexerRegistry
*/
private $indexerRegistry;
/**
* Constructor
*
* @param IndexerRegistry $indexerRegistry
*/
public function __construct(
IndexerRegistry $indexerRegistry
) {
$this->indexerRegistry = $indexerRegistry;
}
/**
* {@inheritdoc}
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function update(GroupInterface $group, $isGroupNew)
{
$this->indexerRegistry->get(Processor::INDEXER_ID)->invalidate();
}
}
Function Calls
| None |
Stats
| MD5 | 9d28b7c41b857ffc2e69db497a2266d3 |
| Eval Count | 0 |
| Decode Time | 79 ms |