@@ -697,7 +697,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
697
697
->setArguments ($ arguments );
698
698
699
699
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
700
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
700
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
701
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
701
702
}
702
703
}
703
704
@@ -729,7 +730,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
729
730
->setArguments ($ arguments );
730
731
731
732
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
732
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
733
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
734
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
733
735
}
734
736
}
735
737
@@ -744,7 +746,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
744
746
->addTag ('ai.store ' );
745
747
746
748
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
747
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
749
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
750
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
748
751
}
749
752
}
750
753
@@ -771,7 +774,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
771
774
;
772
775
773
776
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
774
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
777
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
778
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
775
779
}
776
780
}
777
781
@@ -802,6 +806,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
802
806
->setArguments ($ arguments );
803
807
804
808
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
809
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
810
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
805
811
}
806
812
}
807
813
@@ -832,7 +838,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
832
838
->setArguments ($ arguments );
833
839
834
840
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
835
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
841
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
842
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
836
843
}
837
844
}
838
845
@@ -857,7 +864,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
857
864
->setArguments ($ arguments );
858
865
859
866
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
860
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
867
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
868
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
861
869
}
862
870
}
863
871
@@ -889,7 +897,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
889
897
->setArguments ($ arguments );
890
898
891
899
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
892
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
900
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
901
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
893
902
}
894
903
}
895
904
@@ -916,7 +925,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
916
925
->setArguments ($ arguments );
917
926
918
927
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
919
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
928
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
929
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
920
930
}
921
931
}
922
932
@@ -954,7 +964,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
954
964
->setArguments ($ arguments );
955
965
956
966
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
957
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
967
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
968
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
958
969
}
959
970
}
960
971
@@ -979,7 +990,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
979
990
->setArguments ($ arguments );
980
991
981
992
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
982
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
993
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
994
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
983
995
}
984
996
}
985
997
@@ -1006,7 +1018,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
1006
1018
->setArguments ($ arguments );
1007
1019
1008
1020
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
1009
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
1021
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
1022
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
1010
1023
}
1011
1024
}
1012
1025
@@ -1047,7 +1060,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
1047
1060
->setArguments ($ arguments );
1048
1061
1049
1062
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
1050
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
1063
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
1064
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
1051
1065
}
1052
1066
}
1053
1067
@@ -1074,7 +1088,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
1074
1088
->setArguments ($ arguments );
1075
1089
1076
1090
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
1077
- $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, (new Target ($ name .'Store ' ))->getParsedName ());
1091
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
1092
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
1078
1093
}
1079
1094
}
1080
1095
@@ -1093,6 +1108,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
1093
1108
->setArguments ($ arguments );
1094
1109
1095
1110
$ container ->setDefinition ('ai.store. ' .$ type .'. ' .$ name , $ definition );
1111
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ name );
1112
+ $ container ->registerAliasForArgument ('ai.store. ' .$ name , StoreInterface::class, $ type .'_ ' .$ name );
1096
1113
}
1097
1114
}
1098
1115
}
0 commit comments