-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #236 Allow entrypoints.json to be hosted remotely (Raphaël Lo…
…uvradoux, Kocal) This PR was merged into the 2.x branch. Discussion ---------- Allow entrypoints.json to be hosted remotely Fixes #76 See #97, this PR uses the Symfony HttpClient to remotely fetch the entrypoints file, but also to allow mocking in a proper way. It also add/adapt many tests, and improve the documentation. Commits ------- f5b9a1d Use HttpClient instead of file_get_contents(), add tests and documentation 2fe9a88 Allow entrypoints.json to be hosted remotely
- Loading branch information
Showing
10 changed files
with
152 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="5.13.1@086b94371304750d1c673315321a55d15fc59015"> | ||
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0"> | ||
<file src="src/Asset/EntrypointLookup.php"> | ||
<InvalidReturnStatement> | ||
<code><![CDATA[$this->entriesData]]></code> | ||
</InvalidReturnStatement> | ||
</file> | ||
<file src="src/DependencyInjection/Configuration.php"> | ||
<UndefinedMethod> | ||
<code>children</code> | ||
<code><![CDATA[children]]></code> | ||
</UndefinedMethod> | ||
</file> | ||
</files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% for jsFile in encore_entry_js_files('backend', 'remote_build') %} | ||
<script src="{{ asset(jsFile) }}"></script> | ||
{% endfor %} | ||
|
||
{% for cssFile in encore_entry_css_files('backend', 'remote_build') %} | ||
<link rel="stylesheet" href="{{ asset(cssFile) }}" /> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{{ encore_entry_script_tags('app', null, 'remote_build') }} | ||
{{ encore_entry_link_tags('app', null, 'remote_build') }} |