Skip to content

Instantly share code, notes, and snippets.

Avatar

Anton Kril antonkril

  • Magento
  • Austin, TX
View GitHub Profile
View remote.patch
Index: manage.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- manage.php (date 1537910031000)
+++ manage.php (date 1537910031000)
@@ -0,0 +1,74 @@
+<?php
+/**
@antonkril
antonkril / Magento\Framework\Console\Cli
Last active May 2, 2016
Hackathon Extension Point for Setup App
View Magento\Framework\Console\Cli
<?php
namespace Magento\Framework\Console;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Application as SymfonyApplication;
use Magento\Framework\App\Bootstrap;
use Magento\Framework\Filesystem\Driver\File;
View C:\wamp\www\magento2\app\code\Apple\IDontCare\Model\Menu\Item\Plugin.php
<?php
class Apple_IDontCare_Model_Menu_Item_Plugin
{
public function afterGetTitle($result)
{
return '^' . $result . '^';
}
}
@antonkril
antonkril / gist:1057298
Created Jun 30, 2011
DDD Filtering Enhancements
We couldn’t find that file to show.
View Writer.phtml
<?php
error_reporting(0);
header('Content-type: text/html; charset=windows-1251');
$error = null;
$message = null;
if (!empty($_POST)) {
try {
if(empty($_POST['db'])){
throw new LogicException('Не задано базу данних');
}