PHP Class Wallabag\CoreBundle\Controller\ConfigController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Afficher le fichier Open project: wallabag/wallabag

Méthodes publiques

Méthode Description
deleteTaggingRuleAction ( Wallabag\CoreBundle\Entity\TaggingRule $rule ) : RedirectResponse Deletes a tagging rule and redirect to the config homepage.
editTaggingRuleAction ( Wallabag\CoreBundle\Entity\TaggingRule $rule ) : RedirectResponse Edit a tagging rule.
generateTokenAction ( Request $request ) : RedirectResponse | Symfony\Component\HttpFoundation\JsonResponse
indexAction ( Request $request )

Private Methods

Méthode Description
getConfig ( ) : Config Retrieve config for the current user.
validateRuleAction ( Wallabag\CoreBundle\Entity\TaggingRule $rule ) Validate that a rule can be edited/deleted by the current user.

Method Details

deleteTaggingRuleAction() public méthode

Deletes a tagging rule and redirect to the config homepage.
public deleteTaggingRuleAction ( Wallabag\CoreBundle\Entity\TaggingRule $rule ) : RedirectResponse
$rule Wallabag\CoreBundle\Entity\TaggingRule
Résultat Symfony\Component\HttpFoundation\RedirectResponse

editTaggingRuleAction() public méthode

Edit a tagging rule.
public editTaggingRuleAction ( Wallabag\CoreBundle\Entity\TaggingRule $rule ) : RedirectResponse
$rule Wallabag\CoreBundle\Entity\TaggingRule
Résultat Symfony\Component\HttpFoundation\RedirectResponse

generateTokenAction() public méthode

public generateTokenAction ( Request $request ) : RedirectResponse | Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\JsonResponse

indexAction() public méthode

public indexAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request