for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the jquery-datatables-bundle package.
*
* (c) 2018 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\JQuery\DataTablesBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use WBW\Bundle\CoreBundle\Provider\AssetsProviderInterface;
use WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\Compiler\DataTablesProviderCompilerPass;
use WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\WBWJQueryDataTablesExtension;
/**
* jQuery DataTables bundle.
* @author webeweb <https://github.com/webeweb>
* @package WBW\Bundle\jQuery\DatatablesBundle
class WBWJQueryDataTablesBundle extends Bundle implements AssetsProviderInterface {
* Translation domain.
* @var string
const TRANSLATION_DOMAIN = "WBWJQueryDataTablesBundle";
* {@inheritdoc}
public function build(ContainerBuilder $container): void {
$container->addCompilerPass(new DataTablesProviderCompilerPass());
}
public function getAssetsRelativeDirectory(): string {
return self::ASSETS_RELATIVE_DIRECTORY;
public function getContainerExtension(): Extension {
return new WBWJQueryDataTablesExtension();
* Get the translation domain.
* @return string Returns the translation domain.
public static function getTranslationDomain(): string {
return self::TRANSLATION_DOMAIN;