Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixes root deprecation symfony 4 #56

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Command/PopulateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

namespace Bazinga\Bundle\FakerBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
* @author William Durand <william.durand1@gmail.com>
*/
class PopulateCommand extends ContainerAwareCommand
class PopulateCommand extends Command
{
/**
* {@inheritDoc}
Expand Down
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('faker');
$treeBuilder = new TreeBuilder('faker');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('faker');

$rootNode
->beforeNormalization()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "willdurand/faker-bundle",
"name": "herz3h/faker-bundle-sf4",
"description": "Put the awesome Faker lib into the DIC and populate your database with fake data.",
"keywords": ["faker", "fixtures", "data"],
"type": "symfony-bundle",
Expand Down