mirror of
https://github.com/bdnugget/n98-magerun2.git
synced 2026-11-07 08:57:30 +00:00
29 lines
687 B
PHP
29 lines
687 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
// Currently disabled in box.json.dist -> We have issues with n98-magerun2 modules
|
|
|
|
use Isolated\Symfony\Component\Finder\Finder;
|
|
|
|
$polyfillsBootstrap = Finder::create()
|
|
->files()
|
|
->in(__DIR__ . '/vendor/symfony/polyfill-*')
|
|
->name('bootstrap.php');
|
|
|
|
return [
|
|
'prefix' => 'N98Magerun2\\Ext',
|
|
'whitelist' => [
|
|
'Composer\\*',
|
|
'Magento\\*',
|
|
'N98\\*',
|
|
'Symfony\\Polyfill\\*',
|
|
'Symfony\\Component\\Console\\*',
|
|
],
|
|
'files-whitelist' => array_map(
|
|
static function ($file) {
|
|
return $file->getPathName();
|
|
},
|
|
iterator_to_array($polyfillsBootstrap)
|
|
),
|
|
];
|