Last active
August 29, 2015 14:14
-
-
Save daim2k5/f963c98db70a5731a87b to your computer and use it in GitHub Desktop.
Magento2 Sami SymfonyFilter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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