for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Borobudur-Kernel package.
*
* (c) Hexacodelabs <http://hexacodelabs.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Borobudur\Kernel\Processor;
use Borobudur\Kernel\KernelInterface;
/**
* @author Iqbal Maulana <[email protected]>
* @created 8/17/15
class BundleProcessor implements ProcessorInterface
{
* {@inheritdoc}
public function initialize(KernelInterface $kernel)
$kernel->getBundleManager()->add($this->getBundles($kernel));
}
* Get bundles.
* @param KernelInterface $kernel
* @return array
private function getBundles(KernelInterface $kernel)
$env = $kernel->getEnvironmentManager()->getEnvInstance();
return array_merge((array) $kernel->registerBundles(), (array) $env->registerBundles());