Skip to content

Instantly share code, notes, and snippets.

View antonkril's full-sized avatar

Anton Kril antonkril

  • Magento
  • Austin, TX
View GitHub Profile
<?php
declare(strict_types=1);
namespace Bold\Checkout\Observer\Checkout;
use Bold\Checkout\Block\Onepage\Button;
use Bold\Checkout\Model\Config;
use Bold\Checkout\Model\GetParallelCheckoutTemplate;
use Magento\Catalog\Block\ShortcutButtons;
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
+/**
<?php
class Apple_IDontCare_Model_Menu_Item_Plugin
{
public function afterGetTitle($result)
{
return '^' . $result . '^';
}
}
@antonkril
antonkril / Magento\Framework\Console\Cli
Last active May 2, 2016 08:12
Hackathon Extension Point for Setup App
<?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;
@antonkril
antonkril / gist:1057298
Created June 30, 2011 21:35
DDD Filtering Enhancements
We couldn’t find that file to show.
<?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('Не задано базу данних');
}