Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
f80d9802
Commit
f80d9802
authored
Apr 12, 2021
by
Oliver Bartsch
Browse files
[TASK] Add endpoint for retrieving the composer map
parent
f9403b40
Pipeline
#10556
passed with stages
in 5 minutes and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extensions/ter/Classes/Controller/ComposerizeController.php
View file @
f80d9802
...
...
@@ -25,6 +25,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
*/
class
ComposerizeController
{
public
function
createExtensionComposerMapAction
(
ServerRequestInterface
$request
):
ResponseInterface
{
return
new
JsonResponse
(
$this
->
getExtensionComposerMap
(),
200
);
}
public
function
createComposerManifestAction
(
ServerRequestInterface
$request
):
ResponseInterface
{
$extensionKey
=
$request
->
getAttribute
(
'routeResult'
)[
'key'
]
??
''
;
...
...
extensions/ter/Classes/Middleware/ComposerizeEndpoint.php
View file @
f80d9802
...
...
@@ -30,6 +30,7 @@ class ComposerizeEndpoint implements MiddlewareInterface
{
protected
string
$base
=
'/composerize'
;
protected
array
$routes
=
[
'createExtensionComposerMap'
=>
[
'endpoint'
=>
''
,
'method'
=>
'GET'
],
'createComposerManifest'
=>
[
'endpoint'
=>
'/{key}'
,
'method'
=>
'POST'
]
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment