1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-09-02 20:52:44 +02:00

refactor: inject the action params via its execute method (#2907)

This commit is contained in:
Dag
2022-07-08 21:06:14 +02:00
committed by GitHub
parent 22c10941dc
commit a966213cd7
7 changed files with 32 additions and 35 deletions

View File

@@ -14,14 +14,12 @@
class DetectAction implements ActionInterface
{
public $userData = [];
public function execute()
public function execute(array $request)
{
$targetURL = $this->userData['url']
$targetURL = $request['url']
or returnClientError('You must specify a url!');
$format = $this->userData['format']
$format = $request['format']
or returnClientError('You must specify a format!');
$bridgeFactory = new \BridgeFactory();