Skip to content

Instantly share code, notes, and snippets.

@daim2k5
daim2k5 / gist:f963c98db70a5731a87b
Last active August 29, 2015 14:14
Magento2 Sami SymfonyFilter
<?php
require_once 'vendor/autoload.php';
use Sami\Sami;
use Symfony\Component\Finder\Finder;
use Sami\Parser\Filter\SymfonyFilter;
$iterator = Finder::create()
->files()
->name('*.php')
->in('/magento2/app/code/Magento/AdminNotification');
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php

Keybase proof

I hereby claim:

  • I am daim2k5 on github.
  • I am daim2k5 (https://keybase.io/daim2k5) on keybase.
  • I have a public key whose fingerprint is B43F EEF2 B717 47DA 36D7 D179 2566 B603 5767 4219

To claim this, I am signing this object:

delimiter ;;
drop procedure if exists sort_categories;;
create procedure sort_categories()
begin
DECLARE cur_id BIGINT UNSIGNED;
DECLARE cur_eof INT DEFAULT FALSE;
DECLARE cur CURSOR FOR
SELECT entity_id
FROM catalog_category_entity_varchar
WHERE attribute_id = (