Skip to content

Instantly share code, notes, and snippets.

View adrian-martinez-interactiv4's full-sized avatar

Adrián Martínez Interactiv4 adrian-martinez-interactiv4

View GitHub Profile
#!/bin/bash
# Creator: Phil Cook
# Email: phil@phil-cook.com
# Twitter: @p_cook
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
brew_array=("5.6","7.0","7.1","7.2")
php_array=("php@5.6" "php@7.0" "php@7.1" "php@7.2")
valet_support_php_version_array=("php@5.6" "php@7.0" "php@7.1" "php@7.2")
php_installed_array=()
#!/bin/sh
php_versions_array=(
"5.6"
"7.0"
"7.1"
"7.2"
)
apache_conf_path="/usr/local/etc/httpd/httpd.conf"
<?php
use Magento\Framework\App\Area;
require __DIR__ . '/app/bootstrap.php';
/**
* Class Hello
*/
class Hello
@adrian-martinez-interactiv4
adrian-martinez-interactiv4 / testAbstractExtensibleModel.php
Created February 25, 2018 12:19
testAbstractExtensibleModel.php
<?php
use Magento\Framework\App\Area;
require __DIR__ . '/app/bootstrap.php';
class testAbstractExtensibleModelApp extends \Magento\Framework\App\Http implements \Magento\Framework\AppInterface
{
/**
* @return \Magento\Framework\App\Response\Http
*/
<?php
use Magento\Framework\App\Area;
use Magento\Framework\App\Config\ScopeConfigInterface;
require __DIR__ . '/app/bootstrap.php';
class TestConfigBackendModelApp extends \Magento\Framework\App\Http implements \Magento\Framework\AppInterface
{
/**
@adrian-martinez-interactiv4
adrian-martinez-interactiv4 / adminhtml_get_url_test_app.php
Created October 16, 2017 00:04
Adminhtml get url test, place in Magento root folder and execute it
<?php
use Magento\Framework\App\Area;
require __DIR__ . '/app/bootstrap.php';
class AdminhtmlGetUrlTestApp extends \Magento\Framework\App\Http implements \Magento\Framework\AppInterface
{
public function launch()
{
$this->_state->setAreaCode(Area::AREA_ADMINHTML);