mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-31 23:39:56 +02:00
refactor: inject the action params via its execute method (#2907)
This commit is contained in:
parent
22c10941dc
commit
a966213cd7
7 changed files with 32 additions and 35 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue