diff --git a/Command/DriverLockCommand.php b/Command/DriverLockCommand.php index d1fed4d..6a07412 100644 --- a/Command/DriverLockCommand.php +++ b/Command/DriverLockCommand.php @@ -5,10 +5,10 @@ use Lexik\Bundle\MaintenanceBundle\Drivers\AbstractDriver; use Lexik\Bundle\MaintenanceBundle\Drivers\DriverTtlInterface; +use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; /** * Create a lock action @@ -16,7 +16,7 @@ * @package LexikMaintenanceBundle * @author Gilles Gauthier */ -class DriverLockCommand extends ContainerAwareCommand +class DriverLockCommand extends Command { protected $ttl; diff --git a/Command/DriverUnlockCommand.php b/Command/DriverUnlockCommand.php index 435e656..51e5006 100644 --- a/Command/DriverUnlockCommand.php +++ b/Command/DriverUnlockCommand.php @@ -2,9 +2,9 @@ namespace Lexik\Bundle\MaintenanceBundle\Command; +use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; /** * Create an unlock action @@ -12,7 +12,7 @@ * @package LexikMaintenanceBundle * @author Gilles Gauthier */ -class DriverUnlockCommand extends ContainerAwareCommand +class DriverUnlockCommand extends Command { /** * {@inheritdoc} diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 6ee781f..aa60a6b 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -20,8 +20,8 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('lexik_maintenance'); + $treeBuilder = new TreeBuilder('lexik_maintenance'); + $rootNode = $treeBuilder->getRootNode(); $rootNode ->addDefaultsIfNotSet()