This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SomeClass | |
{ | |
/** | |
* @var \Magento\Framework\App\Config\ScopeConfigInterface | |
*/ | |
private $configInterface; | |
/** | |
* @var \Magento\Framework\App\Config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SomeClass | |
{ | |
/** | |
* @var \Magento\Catalog\Model\ResourceModel\Product | |
*/ | |
private $productResource; | |
/** | |
* @var \Magento\Catalog\Model\ProductFactory | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SomeClass | |
{ | |
public function __construct( | |
\Magento\Framework\Filter\Template $templateFilter | |
) | |
{ | |
$this->templateFilter = $templateFilter; | |
} | |
public function getDirectiveContent() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
* @author Hervé Guétin <[email protected]> <@herveguetin> | |
*/ | |
class Reindex | |
{ | |
/** | |
* @var \Magento\Indexer\Console\Command\IndexerReindexCommand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel Lumen (5.1.1) (Laravel Components 5.1.*) on 2015-08-18. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new again |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace My\Module\Setup; | |
use Magento\Framework\Setup\ModuleContextInterface; | |
use Magento\Framework\Setup\SchemaSetupInterface; | |
use Magento\Framework\Setup\UpgradeSchemaInterface; | |
/** | |
* @codeCoverageIgnore | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 1. Observe the following event: controller_action_predispatch_wishlist_index_add which calls, for example, the `forceReferer()` method | |
// 2. In your observer class, implement the `forceReferer()` method | |
/** | |
* When adding a product to wishlist, | |
* force redirection to wishlist page after customer login | |
* | |
*/ | |
public function forceReferer(Varien_Event_Observer $observer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Retrieve content of a standalone layout | |
* | |
* @return string | |
* @throws Mage_Core_Exception | |
*/ | |
public function getStandaloneLayoutHtml() | |
{ | |
$layout = Mage::getModel('core/layout'); // Instanciate a brand new layout (not using the singleton from Mage::app()->getLayout()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$tree = array( | |
'Category A' => array( | |
'Category A-B' => array( | |
'Category A-B-A', | |
'Category A-B-B' | |
), | |
'Category A-C' => array( | |
'Category A-C-A', | |
'Category A-C-B' |
NewerOlder