Skip to content

Commit

Permalink
Bump sonata-project/admin-bundle to ^4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Jun 8, 2022
1 parent b9abba4 commit f28470a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"doctrine/mongodb-odm": "^2.1",
"doctrine/mongodb-odm-bundle": "^4.3",
"doctrine/persistence": "^2.0",
"sonata-project/admin-bundle": "^4.0",
"sonata-project/admin-bundle": "^4.8",
"sonata-project/form-extensions": "^1.7.1",
"symfony/config": "^4.4 || ^5.4 || ^6.0",
"symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0",
Expand Down
30 changes: 5 additions & 25 deletions tests/App/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,55 +33,35 @@
->set(CategoryAdmin::class)
->tag('sonata.admin', [
'manager_type' => 'doctrine_mongodb',
'model_class' => Category::class,
'label' => 'Category',
])
->args([
'',
Category::class,
null,
])

->set(BookAdmin::class)
->tag('sonata.admin', [
'manager_type' => 'doctrine_mongodb',
'model_class' => Book::class,
'label' => 'Book',
])
->args([
'',
Book::class,
null,
])

->set(AuthorAdmin::class)
->tag('sonata.admin', [
'manager_type' => 'doctrine_mongodb',
'model_class' => Author::class,
'label' => 'Author',
])
->args([
'',
Author::class,
null,
])

->set(AddressAdmin::class)
->tag('sonata.admin', [
'manager_type' => 'doctrine_mongodb',
'model_class' => Address::class,
'label' => 'Address',
])
->args([
'',
Address::class,
null,
])

->set(PhoneNumberAdmin::class)
->tag('sonata.admin', [
'manager_type' => 'doctrine_mongodb',
'model_class' => PhoneNumber::class,
'label' => 'PhoneNumber',
])
->args([
'',
PhoneNumber::class,
null,
]);
};

0 comments on commit f28470a

Please sign in to comment.