File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/com/magento/idea/magento2plugin/actions/generation Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public String getControllerDirectory() {
140
140
}
141
141
142
142
public String getActionDirectory () {
143
- return getControllerDirectory () + File . separator + getControllerName ();
143
+ return getControllerDirectory () + "/" + getControllerName ();
144
144
}
145
145
146
146
private void suggestControllerDirectory () {
@@ -166,15 +166,15 @@ private String getModuleIdentifierPath() {
166
166
if (parts [0 ] == null || parts [1 ] == null || parts .length > 2 ) {
167
167
return null ;
168
168
}
169
- return parts [0 ] + File . separator + parts [1 ];
169
+ return parts [0 ] + "/" + parts [1 ];
170
170
}
171
171
172
172
private String getNamespace () {
173
173
String []parts = moduleName .split (Package .VENDOR_MODULE_NAME_SEPARATOR );
174
174
if (parts [0 ] == null || parts [1 ] == null || parts .length > 2 ) {
175
175
return null ;
176
176
}
177
- String directoryPart = getControllerDirectory ().replace (File . separator , Package .FQN_SEPARATOR );
177
+ String directoryPart = getControllerDirectory ().replace ("/" , Package .FQN_SEPARATOR );
178
178
String controllerPart = Package .FQN_SEPARATOR + getControllerName ();
179
179
180
180
return parts [0 ] + Package .FQN_SEPARATOR + parts [1 ] + Package .FQN_SEPARATOR + directoryPart + controllerPart ;
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ private String getControllerFqn() {
130
130
private PhpClass createControllerClass (String actionName ) {
131
131
PsiDirectory parentDirectory = ModuleIndex .getInstance (project )
132
132
.getModuleDirectoryByModuleName (getControllerModule ());
133
- String [] controllerDirectories = controllerFileData .getActionDirectory ().split (File . separator );
133
+ String [] controllerDirectories = controllerFileData .getActionDirectory ().split ("/" );
134
134
for (String controllerDirectory : controllerDirectories ) {
135
135
parentDirectory = directoryGenerator .findOrCreateSubdirectory (parentDirectory , controllerDirectory );
136
136
}
You can’t perform that action at this time.
0 commit comments