- Find the commit a GitHub
- Add .patch to the URL
- Require vaimo/composer-patches
- Add an entry like the above, with path-removal-level 5, to the composer.json
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
# from tagged packagist version | |
composer create-project magento/community-edition:dev-2.3-develop | |
# from tagged magento repo | |
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition=2.3.0-beta8 |
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
#!/bin/bash | |
# Derived from | |
# https://github.com/btford/allthethings | |
# | |
# Licensed under WTFPL http://sam.zoy.org/wtfpl/ | |
# | |
pur=$(tput setaf 5) # Purple |
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 | |
// Context: I'm trying to argue that DI (and DIC) are great, and DIC libs suck. | |
// Happy to be proven wrong! | |
final class Router { | |
private $dependencies; | |
public function __construct (Dependencies $dependencies) { | |
$this->dependencies = $dependencies; | |
// You might say that this is Service Locator, but it's not. This router is toplevel, | |
// and toplevel must have access to dependencies. After that it can all just bubble nicely using proper DI. |
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
#!/bin/bash | |
magentodir=$1 | |
cd $magentodir | |
read -d '' script << PHP | |
<?php | |
\$composer = json_decode(file_get_contents('composer.json'), true); | |
if (!is_array(\$composer['autoload']['psr-0'][''])) { |
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 | |
trait Memoize | |
{ | |
/** | |
* @var array [method][parameters] | |
*/ | |
private $memoizedResults = []; | |
protected function memoizedCall($methodName, $args) | |
{ |
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
#!/bin/bash | |
# Sets up a database with a magento2 installation. This assumes you are running from under your httpdocs/<release> location and have www.localhost.com in your /etc/hosts file | |
# To run type : install_magento2 <dirname> <password> <release> | |
# password is used for the datbase user and the magento admin password | |
if [ $# -eq 0 ]; then | |
echo "No arguments supplied" | |
echo "Usage: `basename $0` <dirname> <password> <release>" | |
echo "e.g install_magento2.sh mage2 password 21" | |
exit 1 |
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
<?xml version="1.0"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd"> | |
<acl> | |
<resources> | |
<resource id="Magento_Backend::admin"> | |
</resource> | |
</resources> | |
</acl> | |
</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
#!/bin/bash | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get -y install software-properties-common | |
# X2Go | |
add-apt-repository -y ppa:x2go/stable && apt-get update | |
apt-get -y install x2goserver | |
# Download PHPStorm |
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 | |
/** | |
* @category Namespace | |
* @package Namespace_Module | |
* @author Anna Völkl | |
* @author Christoph Aßmann | |
* @author Fabian Schmengler | |
*/ | |
/** @var Mage_Core_Model_Resource_Setup $installer */ |
NewerOlder