Unused method, property, variable or parameter
This commit is contained in:
parent
07d50a28e8
commit
b83de090eb
|
@ -237,6 +237,7 @@ class CrudConfiguration
|
|||
public function setFieldsets(array $fieldsets, array $i18nFieldsets = array())
|
||||
{
|
||||
$this->fieldsets = $fieldsets;
|
||||
$this->i18nFieldsets_ = $i18nFieldsets;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$treeBuilder->root('trinity_admin');
|
||||
// $treeBuilder->root('trinity_admin');
|
||||
|
||||
/*$rootNode
|
||||
->children()
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrinityAdminExtension extends Extension
|
|||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.xml');
|
||||
|
|
|
@ -38,7 +38,6 @@ class ConfigurationTransformer
|
|||
$sub_category = call_user_func(array($sub_category['callback'][0], $sub_category['callback'][1]));
|
||||
}
|
||||
|
||||
$method = $sub_category['test_is_granted'] ? 'addChildIfGranted' : 'addChild';
|
||||
$title = $sub_category['title'];
|
||||
|
||||
$options = array();
|
||||
|
|
|
@ -18,12 +18,10 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('trinity_assets');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
// more information on that topic.
|
||||
|
||||
return $treeBuilder;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrinityAssetsExtension extends Extension
|
|||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.xml');
|
||||
|
|
|
@ -18,12 +18,10 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('trinity_contact');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
// more information on that topic.
|
||||
|
||||
return $treeBuilder;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrinityContactExtension extends Extension
|
|||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.xml');
|
||||
|
|
|
@ -160,6 +160,7 @@ class PageConfiguration
|
|||
public function setFieldsets(array $fieldsets, array $i18nFieldsets = array())
|
||||
{
|
||||
$this->fieldsets = $fieldsets;
|
||||
$this->i18nFieldsets_ = $i18nFieldsets;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ class NodeUrlResolver
|
|||
|
||||
private $container;
|
||||
private $config_url_resolver;
|
||||
private $config_default_locale;
|
||||
private $router;
|
||||
|
||||
public function __construct(ContainerInterface $container, RouterInterface $router)
|
||||
|
|
|
@ -13,7 +13,6 @@ class PageExtension extends \Twig_Extension
|
|||
{
|
||||
private $environment;
|
||||
private $resources;
|
||||
private $blockManager;
|
||||
|
||||
protected $pageSelector;
|
||||
protected $url_resolver;
|
||||
|
|
|
@ -18,12 +18,10 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('trinity_icons');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
// more information on that topic.
|
||||
|
||||
return $treeBuilder;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrinityIconsExtension extends Extension
|
|||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.xml');
|
||||
|
|
|
@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('trinity_media');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrinityMediaExtension extends Extension
|
|||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.xml');
|
||||
|
|
|
@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('trinity_newsletter');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
|
|
|
@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('trinity_search');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrinitySearchExtension extends Extension
|
|||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.xml');
|
||||
|
|
|
@ -13,7 +13,6 @@ class RouteAccessControl implements AccessControlInterface
|
|||
private $context;
|
||||
private $accessDecisionManager;
|
||||
private $map;
|
||||
private $router;
|
||||
|
||||
public function __construct(SecurityContextInterface $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMap $map, RouterInterface $router)
|
||||
{
|
||||
|
@ -38,7 +37,7 @@ class RouteAccessControl implements AccessControlInterface
|
|||
|
||||
$request = Request::create($this->route);
|
||||
|
||||
list($attributes, $channel) = $this->map->getPatterns($request);
|
||||
list($attributes) = $this->map->getPatterns($request);
|
||||
|
||||
if (null === $attributes) {
|
||||
return true;
|
||||
|
|
|
@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('trinity_security');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrinitySecurityExtension extends Extension
|
|||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.xml');
|
||||
|
|
|
@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('trinity_slideshow');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrinitySlideshowExtension extends Extension
|
|||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.xml');
|
||||
|
|
|
@ -74,8 +74,6 @@ class VarsAdminController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
$fs = new Filesystem();
|
||||
|
||||
if (is_writable($file)) {
|
||||
file_put_contents($file, $dumper->dump($config, 7));
|
||||
} else {
|
||||
|
|
|
@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
|
|||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('trinity_widget');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrinityWidgetExtension extends Extension
|
|||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.xml');
|
||||
|
|
Loading…
Reference in a new issue