for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Plugin\QueryCustomize\ServiceProvider;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Plugin\QueryCustomize\Entity\AdminCustomerCustomizer;
use Silex\Api\BootableProviderInterface;
use Silex\Application;
class QueryCustomizeServiceProvider implements ServiceProviderInterface, BootableProviderInterface
{
public function register(Container $app)
$app['plugin.query_customize.customer_search'] = function (Container $container) {
$container
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new AdminCustomerCustomizer();
};
}
public function boot(Application $app)
$app['eccube.queries']
->addCustomizer($app['plugin.query_customize.customer_search']);