5
5
import com .intellij .notification .Notifications ;
6
6
import com .intellij .openapi .components .ProjectComponent ;
7
7
import com .intellij .openapi .diagnostic .Logger ;
8
- import com .intellij .openapi .editor .EditorFactory ;
9
- import com .intellij .openapi .editor .event .CaretListener ;
10
8
import com .intellij .openapi .extensions .ExtensionPointName ;
11
9
import com .intellij .openapi .project .Project ;
12
10
import com .intellij .openapi .util .io .FileUtil ;
13
11
import com .intellij .openapi .vfs .VfsUtil ;
14
12
import com .intellij .openapi .wm .StatusBar ;
15
13
import com .intellij .openapi .wm .WindowManager ;
16
14
import com .intellij .psi .PsiElement ;
17
- import fr .adrienbrault .idea .symfony2plugin .codeInsight .caret .overlay .CaretTextOverlayListener ;
18
15
import fr .adrienbrault .idea .symfony2plugin .dic .ContainerFile ;
19
16
import fr .adrienbrault .idea .symfony2plugin .extension .ServiceContainerLoader ;
20
17
import fr .adrienbrault .idea .symfony2plugin .extension .ServiceContainerLoaderParameter ;
21
- import fr .adrienbrault .idea .symfony2plugin .routing .Route ;
22
18
import fr .adrienbrault .idea .symfony2plugin .routing .RouteHelper ;
23
19
import fr .adrienbrault .idea .symfony2plugin .util .IdeHelper ;
24
20
import fr .adrienbrault .idea .symfony2plugin .util .service .ServiceXmlParserFactory ;
@@ -120,7 +116,9 @@ public List<File> getContainerFiles(boolean attachSetting) {
120
116
}
121
117
122
118
if (containerFiles .size () == 0 ) {
123
- containerFiles .add (new ContainerFile (Settings .DEFAULT_CONTAINER_PATH ));
119
+ for (String s : Settings .DEFAULT_CONTAINER_PATHS ) {
120
+ containerFiles .add (new ContainerFile (s ));
121
+ }
124
122
}
125
123
126
124
List <File > validFiles = new ArrayList <File >();
@@ -145,7 +143,8 @@ private void checkProject() {
145
143
146
144
if (!this .isEnabled () && !Settings .getInstance (project ).dismissEnableNotification ) {
147
145
if (VfsUtil .findRelativeFile (this .project .getBaseDir (), "vendor" ) != null
148
- && VfsUtil .findRelativeFile (this .project .getBaseDir (), "app" , "cache" ) != null
146
+ && VfsUtil .findRelativeFile (this .project .getBaseDir (), "app" , "config" ) != null
147
+ && VfsUtil .findRelativeFile (this .project .getBaseDir (), "app" , "Resources" ) != null
149
148
&& VfsUtil .findRelativeFile (this .project .getBaseDir (), "vendor" , "symfony" , "symfony" ) != null
150
149
) {
151
150
IdeHelper .notifyEnableMessage (project );
0 commit comments