Skip to content

Commit 9cc56cc

Browse files
committed
remove paid / deprecated extensions from public repository
1 parent 9b05fc2 commit 9cc56cc

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/templating/util/PhpMethodVariableResolveUtil.java

+1-18
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,10 @@ public static void visitRenderTemplateFunctions(@NotNull PsiElement context, @No
262262
private static class TemplateRenderPsiRecursiveElementWalkingVisitor extends PsiRecursiveElementWalkingVisitor {
263263
private final PsiElement context;
264264
private final Consumer<Triple<String, PhpNamedElement, FunctionReference>> consumer;
265-
private Set<String> methods;
266265

267266
TemplateRenderPsiRecursiveElementWalkingVisitor(PsiElement context, Consumer<Triple<String, PhpNamedElement, FunctionReference>> consumer) {
268267
this.context = context;
269268
this.consumer = consumer;
270-
methods = null;
271269
}
272270

273271
@Override
@@ -312,22 +310,7 @@ private void visitMethodReference(@NotNull MethodReference methodReference) {
312310
return;
313311
}
314312

315-
// init methods once per file
316-
if(methods == null) {
317-
methods = new HashSet<>();
318-
319-
PluginConfigurationExtension[] extensions = Symfony2ProjectComponent.PLUGIN_CONFIGURATION_EXTENSION.getExtensions();
320-
if(extensions.length > 0) {
321-
PluginConfigurationExtensionParameter pluginConfiguration = new PluginConfigurationExtensionParameter(context.getProject());
322-
for (PluginConfigurationExtension extension : extensions) {
323-
extension.invokePluginConfiguration(pluginConfiguration);
324-
}
325-
326-
methods.addAll(pluginConfiguration.getTemplateUsageMethod());
327-
}
328-
}
329-
330-
if(!methods.contains(methodName) && !methodName.toLowerCase().contains("render")) {
313+
if (!methodName.toLowerCase().contains("render")) {
331314
return;
332315
}
333316

src/main/resources/META-INF/pay.xml

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<!-- All feature that are only available via valid plugin license (paid) -->
22
<idea-plugin url="https://www.jetbrains.com/idea">
33

4-
<extensionPoints>
5-
<extensionPoint dynamic="true" name="extension.PluginConfigurationExtension" interface="fr.adrienbrault.idea.symfony2plugin.extension.PluginConfigurationExtension"/>
6-
<extensionPoint dynamic="true" name="extension.TwigFileUsage" interface="fr.adrienbrault.idea.symfony2plugin.extension.TwigFileUsage"/>
7-
<extensionPoint dynamic="true" name="extension.TranslatorProvider" interface="fr.adrienbrault.idea.symfony2plugin.extension.TranslatorProvider"/>
84

9-
</extensionPoints>
105

116
</idea-plugin>

0 commit comments

Comments
 (0)