Can now create jobs, and set prerequisites for the fake provider, which will be skipped when they're not necessary.

This commit is contained in:
James Cole
2018-04-29 19:07:54 +02:00
parent b5be1b11d1
commit d2bb65bf04
8 changed files with 237 additions and 40 deletions

View File

@@ -45,14 +45,6 @@ interface PrerequisitesInterface
*/
public function getViewParameters(): array;
/**
* Returns if this import method has any special prerequisites such as config
* variables or other things.
*
* @return bool
*/
public function hasPrerequisites(): bool;
/**
* Indicate if all prerequisites have been met.
*
@@ -68,6 +60,10 @@ interface PrerequisitesInterface
public function setUser(User $user): void;
/**
* This method responds to the user's submission of an API key. Should do nothing but store the value.
*
* Errors must be returned in the message bag under the field name they are requested by.
*
* @param Request $request
*
* @return MessageBag