This file contains hidden or 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 AppBundle\Command; | |
use Sylius\Component\Core\Model\ChannelPricingInterface; | |
use Sylius\Component\Core\Model\ProductInterface; | |
use Sylius\Component\Core\Model\ProductVariantInterface; | |
use Sylius\Component\Product\Model\ProductAssociationInterface; | |
use Sylius\Component\Product\Model\ProductAssociationTypeInterface; | |
use Sylius\Component\Taxonomy\Model\TaxonInterface; |
This file contains hidden or 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
/** | |
Decode a php serialized value to json. This function only supports basic | |
data types: | |
- arrays (will always become a json object) | |
- booleans | |
- integers | |
- floats | |
- strings | |
- NULL |
This file contains hidden or 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
.PHONY: webperf | |
webperf: | |
rm -rf * |
This file contains hidden or 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 DataTransformer | |
{ | |
public function transform(): \Generator | |
{ | |
while ($request = yield) { | |
yield $request . ' - appended'; | |
} | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Title</title> | |
<link rel="stylesheet" href="bower_components/material-design-lite/material.css" type="text/css" /> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am gplanchat on github. | |
* I am gplanchat (https://keybase.io/gplanchat) on keybase. | |
* I have a public key whose fingerprint is 8009 DB5C EC65 87FC E5F8 AFA6 C7AF 5AE0 49C8 2C1D | |
To claim this, I am signing this object: |
This file contains hidden or 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 | |
trait Foo_Catalog_Block_List_SortableTrait | |
{ | |
/** | |
* @var string | |
*/ | |
protected $_orderVarName = 'order'; | |
/** |
This file contains hidden or 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 | |
function factory($path, ...$args) { | |
$callback = require $path . '.php'; | |
if (!$callback instanceof Closure) { | |
return $callback; | |
} | |
return $callback(...$args); | |
} |
This file contains hidden or 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
diff --git a/web/app/code/core/Mage/Core/Model/Config.php b/web/app/code/core/Mage/Core/Model/Config.php | |
index bc68381..2e7c009 100644 | |
--- a/web/app/code/core/Mage/Core/Model/Config.php | |
+++ b/web/app/code/core/Mage/Core/Model/Config.php | |
@@ -843,12 +843,7 @@ class Mage_Core_Model_Config extends Mage_Core_Model_Config_Base | |
foreach ($modules as $moduleName => $moduleProps) { | |
$depends = $moduleProps['depends']; | |
foreach ($moduleProps['depends'] as $depend => $true) { | |
- if (!$moduleProps['active']) { | |
- $depends = []; |
This file contains hidden or 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
diff --git a/web/app/code/core/Mage/Eav/Model/Entity/Setup.php b/web/app/code/core/Mage/Eav/Model/Entity/Setup.php | |
index 6f3395e..0b56d75 100644 | |
--- a/web/app/code/core/Mage/Eav/Model/Entity/Setup.php | |
+++ b/web/app/code/core/Mage/Eav/Model/Entity/Setup.php | |
@@ -1209,12 +1209,12 @@ class Mage_Eav_Model_Entity_Setup extends Mage_Core_Model_Resource_Setup | |
$isNoDefaultTypes = $this->_getValue($options, 'no-default-types', false); | |
$customTypes = $this->_getValue($options, 'types', array()); | |
$tables = array(); | |
+ $connection = $this->getConnection(); | |
NewerOlder