@@ -697,7 +697,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
697697 ->setArguments ($ arguments );
698698
699699 $ 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 );
701702 }
702703 }
703704
@@ -729,7 +730,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
729730 ->setArguments ($ arguments );
730731
731732 $ 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 );
733735 }
734736 }
735737
@@ -744,7 +746,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
744746 ->addTag ('ai.store ' );
745747
746748 $ 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 );
748751 }
749752 }
750753
@@ -771,7 +774,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
771774 ;
772775
773776 $ 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 );
775779 }
776780 }
777781
@@ -802,6 +806,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
802806 ->setArguments ($ arguments );
803807
804808 $ 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 );
805811 }
806812 }
807813
@@ -832,7 +838,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
832838 ->setArguments ($ arguments );
833839
834840 $ 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 );
836843 }
837844 }
838845
@@ -857,7 +864,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
857864 ->setArguments ($ arguments );
858865
859866 $ 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 );
861869 }
862870 }
863871
@@ -889,7 +897,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
889897 ->setArguments ($ arguments );
890898
891899 $ 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 );
893902 }
894903 }
895904
@@ -916,7 +925,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
916925 ->setArguments ($ arguments );
917926
918927 $ 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 );
920930 }
921931 }
922932
@@ -954,7 +964,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
954964 ->setArguments ($ arguments );
955965
956966 $ 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 );
958969 }
959970 }
960971
@@ -979,7 +990,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
979990 ->setArguments ($ arguments );
980991
981992 $ 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 );
983995 }
984996 }
985997
@@ -1006,7 +1018,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
10061018 ->setArguments ($ arguments );
10071019
10081020 $ 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 );
10101023 }
10111024 }
10121025
@@ -1047,7 +1060,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
10471060 ->setArguments ($ arguments );
10481061
10491062 $ 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 );
10511065 }
10521066 }
10531067
@@ -1074,7 +1088,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
10741088 ->setArguments ($ arguments );
10751089
10761090 $ 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 );
10781093 }
10791094 }
10801095
@@ -1093,6 +1108,8 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
10931108 ->setArguments ($ arguments );
10941109
10951110 $ 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 );
10961113 }
10971114 }
10981115 }
0 commit comments