-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #284 Changed the way we assign entity names and labels (javie…
…reguiluz) This PR was squashed before being merged into the master branch (closes #284). Discussion ---------- Changed the way we assign entity names and labels Commits ------- 6222c19 Changed the way we assign entity names and labels
- Loading branch information
Showing
43 changed files
with
230 additions
and
675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Tests/DependencyInjection/fixtures/configurations/input/admin_003.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Tests/DependencyInjection/fixtures/configurations/input/admin_004.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Tests/DependencyInjection/fixtures/configurations/input/admin_005.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# TEST | ||
# configuration format #2 with custom entity label that doesn't match entity name | ||
# configuration format #2 with custom entity name that doesn't match its class name | ||
|
||
# CONFIGURATION | ||
easy_admin: | ||
entities: | ||
CustomEntityLabel: AppBundle\Entity\TestEntity | ||
CustomEntityName: AppBundle\Entity\TestEntity |
9 changes: 5 additions & 4 deletions
9
Tests/DependencyInjection/fixtures/configurations/input/admin_006.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# NOTE: this test is empty because it was related to a feature that is no longer | ||
# used in EasyAdmin | ||
|
||
# TEST | ||
# configuration format #2 with custom entity label that doesn't match entity name | ||
# configuration format #2 with custom entity name that doesn't match its class name | ||
# and which contains special YAML characters | ||
|
||
# CONFIGURATION | ||
easy_admin: | ||
entities: | ||
'Custom #Entity ~ Label': AppBundle\Entity\TestEntity | ||
easy_admin: ~ |
2 changes: 1 addition & 1 deletion
2
Tests/DependencyInjection/fixtures/configurations/input/admin_007.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
Tests/DependencyInjection/fixtures/configurations/input/admin_008.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# TEST | ||
# configuration format #2: two different entities with the same custom label | ||
# configuration format #2: two different entities with the same custom name | ||
# (the first defined entity wins) | ||
|
||
# CONFIGURATION | ||
easy_admin: | ||
entities: | ||
CustomEntityLabel: AppBundle\Entity\TestEntity | ||
CustomEntityLabel: AppBundle\OtherNamespace\Entity\TestEntity | ||
CustomEntityName: AppBundle\Entity\TestEntity | ||
CustomEntityName: AppBundle\OtherNamespace\Entity\TestEntity |
2 changes: 1 addition & 1 deletion
2
Tests/DependencyInjection/fixtures/configurations/input/admin_009.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Tests/DependencyInjection/fixtures/configurations/input/admin_010.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# TEST | ||
# configuration format #3: entity label doesn't match the entity name | ||
# configuration format #3: entity name doesn't match its class name | ||
|
||
# CONFIGURATION | ||
easy_admin: | ||
entities: | ||
CustomEntityLabel: | ||
CustomEntityName: | ||
class: AppBundle\Entity\TestEntity |
10 changes: 5 additions & 5 deletions
10
Tests/DependencyInjection/fixtures/configurations/input/admin_011.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# NOTE: this test is empty because it was related to a feature that is no longer | ||
# used in EasyAdmin | ||
|
||
# TEST | ||
# configuration format #3 with custom entity label that doesn't match entity name | ||
# configuration format #3 with custom entity name that doesn't match its class name | ||
# and which contains special YAML characters | ||
|
||
# CONFIGURATION | ||
easy_admin: | ||
entities: | ||
'Custom #Entity ~ Label': | ||
class: AppBundle\Entity\TestEntity | ||
easy_admin: ~ |
2 changes: 1 addition & 1 deletion
2
Tests/DependencyInjection/fixtures/configurations/input/admin_013.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
Tests/DependencyInjection/fixtures/configurations/input/admin_014.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# TEST | ||
# configuration format #3 with two different entities using the same custom label | ||
# configuration format #3 with two different entities using the same custom name | ||
# (the first defined entity wins) | ||
|
||
# CONFIGURATION | ||
easy_admin: | ||
entities: | ||
CustomEntityLabel: | ||
CustomEntityName: | ||
class: AppBundle\Entity\TestEntity | ||
CustomEntityLabel: | ||
CustomEntityName: | ||
class: AppBundle\AnotherNamespace\Entity\TestEntity |
12 changes: 5 additions & 7 deletions
12
Tests/DependencyInjection/fixtures/configurations/input/admin_015.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
# NOTE: this test is empty because it was related to a feature that is no longer | ||
# used in EasyAdmin | ||
|
||
# TEST | ||
# configuration format #3 with two different entities using the same custom label | ||
# configuration format #3 with two different entities using the same custom name | ||
# which contains special YAML characters | ||
# (the first defined entity wins) | ||
|
||
# CONFIGURATION | ||
easy_admin: | ||
entities: | ||
'Custom #Entity ~ Label': | ||
class: AppBundle\Entity\TestEntity | ||
'Custom #Entity ~ Label': | ||
class: AppBundle\AnotherNamespace\Entity\TestEntity | ||
easy_admin: ~ |
4 changes: 2 additions & 2 deletions
4
Tests/DependencyInjection/fixtures/configurations/input/admin_016.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Tests/DependencyInjection/fixtures/configurations/input/admin_022.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Tests/DependencyInjection/fixtures/configurations/input/admin_023.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Tests/DependencyInjection/fixtures/configurations/input/admin_024.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Tests/DependencyInjection/fixtures/configurations/input/admin_027.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Tests/DependencyInjection/fixtures/configurations/input/admin_028.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
Tests/DependencyInjection/fixtures/configurations/input/admin_029.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# NOTE: this test is empty because it was related to a feature that is no longer | ||
# used in EasyAdmin | ||
|
||
# TEST | ||
# combining configuration formats #2 and #3 using entities with same names | ||
# and labels which include special YAML characters | ||
# combining configuration formats #2 and #3 using entities with same class names | ||
# but different names which include special YAML characters | ||
|
||
# CONFIGURATION | ||
easy_admin: | ||
entities: | ||
'Custom #Entity ~ Label': AppBundle\Entity\TestEntity | ||
AnotherTestEntity: | ||
class: AppBundle\AnotherNamespace\Entity\TestEntity | ||
label: 'Another Custom #Entity ~ Label' | ||
easy_admin: ~ |
3 changes: 2 additions & 1 deletion
3
Tests/DependencyInjection/fixtures/configurations/input/admin_031.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.