Skip to content

Instantly share code, notes, and snippets.

@daim2k5
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daim2k5/f963c98db70a5731a87b to your computer and use it in GitHub Desktop.
Save daim2k5/f963c98db70a5731a87b to your computer and use it in GitHub Desktop.
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');
return new Sami($iterator, array(
'title' => 'Magento2 API (for master)',
'theme' => 'default',
'build_dir' => __DIR__.'/build/mage2',
'cache_dir' => __DIR__.'/cache/mage2',
'default_opened_level' => 1,
'filter' => new SymfonyFilter(),
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment