Package fr.adrienbrault.idea.symfony2plugin.dic

Examples of fr.adrienbrault.idea.symfony2plugin.dic.ContainerParameter


                for(Map.Entry<String, String> Entry: ServiceXmlParserFactory.getInstance(project, ParameterServiceParser.class).getParameterMap().entrySet()) {

                    // user input here; secure nullable values
                    String key = Entry.getKey();
                    if(key != null) {
                        this.containerParameterMap.put(key, new ContainerParameter(key, Entry.getValue()));
                    }

                }
            }

            if(this.sources.contains(Source.INDEX)) {
                SymfonyProcessors.CollectProjectUniqueKeysStrong projectUniqueKeysStrong = new SymfonyProcessors.CollectProjectUniqueKeysStrong(project, ContainerParameterStubIndex.KEY, this.containerParameterMap.keySet());
                FileBasedIndexImpl.getInstance().processAllKeys(ContainerParameterStubIndex.KEY, projectUniqueKeysStrong, project);

                for(String parameterName: projectUniqueKeysStrong.getResult()) {

                    // just for secure
                    if(parameterName == null) {
                        continue;
                    }

                    // indexes is weak stuff, dont overwrite compiled ones
                    if(!this.containerParameterMap.containsKey(parameterName)) {
                        List<String> parameterValues = FileBasedIndexImpl.getInstance().getValues(ContainerParameterStubIndex.KEY, parameterName, getSearchScope(project));
                        this.containerParameterMap.put(parameterName, new ContainerParameter(parameterName, parameterValues, true));
                    }
                }

            }
View Full Code Here

TOP

Related Classes of fr.adrienbrault.idea.symfony2plugin.dic.ContainerParameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.