@@ -18,6 +18,15 @@ maintainer-conf: .env.local
18
18
@echo " # the DOMjudge Symfony application in developer mode. Adjust as needed." >> $@
19
19
@echo " APP_ENV=dev" >> $@
20
20
21
+ # Dump autoload dependencies (including plugins)
22
+ # This is needed since symfony/runtime is a Composer plugin that runs while dumping
23
+ # the autoload file
24
+ composer-dump-autoload :
25
+ composer $(subst 1,-q,$(QUIET ) ) dump-autoload -o -a
26
+
27
+ composer-dump-autoload-dev :
28
+ composer $(subst 1,-q,$(QUIET ) ) dump-autoload
29
+
21
30
copy-bundle-assets :
22
31
# We can not use bin/console here, as when using a fakeroot,
23
32
# the include paths are broken. We just copy in the data we need
@@ -28,7 +37,7 @@ copy-bundle-assets:
28
37
clean-l :
29
38
-rm -rf public/bundles/nelmioapidoc
30
39
31
- install-domserver :
40
+ install-domserver : composer-dump-autoload
32
41
# This must be done first to install with the rest.
33
42
$(MAKE) copy-bundle-assets
34
43
$(INSTALL_DIR) $(DESTDIR)$(domserver_webappdir);
@@ -49,7 +58,8 @@ install-domserver:
49
58
done
50
59
$(INSTALL_DATA) -t $(DESTDIR)$(domserver_webappdir) phpunit.xml.dist .env
51
60
52
- inplace-install : composer-autoclean
61
+ inplace-install : composer-autoclean composer-dump-autoload
62
+ maintainer-install : composer-dump-autoload-dev
53
63
54
64
# Install PHP dependencies
55
65
composer-dependencies :
0 commit comments