@@ -705,7 +705,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
705
705
->setArguments ($ arguments );
706
706
707
707
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
708
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
708
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
709
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
709
710
}
710
711
}
711
712
@@ -737,7 +738,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
737
738
->setArguments ($ arguments );
738
739
739
740
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
740
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
741
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
742
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
741
743
}
742
744
}
743
745
@@ -752,7 +754,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
752
754
->addTag ('ai.store ' );
753
755
754
756
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
755
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
757
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
758
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
756
759
}
757
760
}
758
761
@@ -779,7 +782,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
779
782
;
780
783
781
784
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
782
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
785
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
786
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
783
787
}
784
788
}
785
789
@@ -810,6 +814,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
810
814
->setArguments ($ arguments );
811
815
812
816
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
817
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
818
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
813
819
}
814
820
}
815
821
@@ -840,7 +846,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
840
846
->setArguments ($ arguments );
841
847
842
848
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
843
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
849
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
850
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
844
851
}
845
852
}
846
853
@@ -865,7 +872,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
865
872
->setArguments ($ arguments );
866
873
867
874
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
868
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
875
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
876
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
869
877
}
870
878
}
871
879
@@ -897,7 +905,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
897
905
->setArguments ($ arguments );
898
906
899
907
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
900
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
908
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
909
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
901
910
}
902
911
}
903
912
@@ -924,7 +933,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
924
933
->setArguments ($ arguments );
925
934
926
935
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
927
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
936
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
937
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
928
938
}
929
939
}
930
940
@@ -962,7 +972,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
962
972
->setArguments ($ arguments );
963
973
964
974
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
965
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
975
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
976
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
966
977
}
967
978
}
968
979
@@ -987,7 +998,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
987
998
->setArguments ($ arguments );
988
999
989
1000
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
990
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
1001
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
1002
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
991
1003
}
992
1004
}
993
1005
@@ -1014,7 +1026,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
1014
1026
->setArguments ($ arguments );
1015
1027
1016
1028
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
1017
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
1029
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
1030
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
1018
1031
}
1019
1032
}
1020
1033
@@ -1055,7 +1068,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
1055
1068
->setArguments ($ arguments );
1056
1069
1057
1070
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
1058
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
1071
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
1072
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
1059
1073
}
1060
1074
}
1061
1075
@@ -1082,7 +1096,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
1082
1096
->setArguments ($ arguments );
1083
1097
1084
1098
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
1085
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
1099
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
1100
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
1086
1101
}
1087
1102
}
1088
1103
@@ -1101,6 +1116,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
1101
1116
->setArguments ($ arguments );
1102
1117
1103
1118
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
1119
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
1120
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
1104
1121
}
1105
1122
}
1106
1123
}
0 commit comments