for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Flagbit\Bundle\TableAttributeBundle\Test\Kernel;
require_once __DIR__.'/../../vendor/akeneo/pim-community-dev/app/AppKernel.php';
use Flagbit\Bundle\TableAttributeBundle\FlagbitTableAttributeBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class TestKernel extends \AppKernel
{
/**
* Registers your custom bundles
*
* @return array
*/
protected function registerProjectBundles()
return [
new FlagbitTableAttributeBundle(),
];
}
* @return string
public function getRootDir(): string
return __DIR__;
public function getCacheDir(): string
return __DIR__
. DIRECTORY_SEPARATOR
. 'var'
. 'cache'
. $this->getEnvironment();
public function getLogDir(): string
return __DIR__ . DIRECTORY_SEPARATOR . 'var' . DIRECTORY_SEPARATOR . 'logs';
protected function build(ContainerBuilder $container)
$serviceIds = ['pim_catalog.validator.constraint_guesser.chained_attribute', 'flagbit_catalog_table.factory.value.table', 'form.extension'];
$container->addCompilerPass(new PublicServiceCompilerPass($serviceIds));