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\HttpKernel\Bundle\Bundle;
use WBW\Bundle\CoreBundle\Provider\AssetsProviderInterface;
use WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\Compiler\JQueryDataTablesCompilerPass;
use WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\JQueryDataTablesExtension;
/**
* jQuery DataTables bundle.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\jQuery\DatatablesBundle
class JQueryDataTablesBundle extends Bundle implements AssetsProviderInterface {
* DataTables version.
* @var string
* @deprecated since 2.1.0
const DATATABLES_VERSION = DataTablesVersionInterface::DATATABLES_VERSION;
* {@inheritDoc}
public function build(ContainerBuilder $container) {
$container->addCompilerPass(new JQueryDataTablesCompilerPass());
}
public function getAssetsRelativeDirectory() {
return "/Resources/assets";
public function getContainerExtension() {
return new JQueryDataTablesExtension();