SourcesController

Extends \Symfony\Bundle\FrameworkBundle\Controller\AbstractController

Sources Controller provides CRUD operations for Sources Entity

package

App\Controler

Route

("/sources")

Methods

Delete a source from the table

deleteSourcesAction(\Symfony\Component\HttpFoundation\Request $request, \App\Entity\Sources $source) : \Symfony\Component\HttpFoundation\RedirectResponse
Route

("/{id}", name="sources_delete", methods={"DELETE"})

Arguments

$request

\Symfony\Component\HttpFoundation\Request

Response

\Symfony\Component\HttpFoundation\RedirectResponse

Edit a source in the table

editSourcesAction(\Symfony\Component\HttpFoundation\Request $request, \App\Entity\Sources $source) : \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
Route

("/{id}/edit", name="sources_edit", methods={"GET","POST"})

Arguments

$request

\Symfony\Component\HttpFoundation\Request

Response

\Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response

Show the index table of all sources

indexSourcesAction(\App\Repository\SourcesRepository $sourcesRepository) : \Symfony\Component\HttpFoundation\Response
Route

("/", name="sources_index", methods={"GET"})

Arguments

Response

\Symfony\Component\HttpFoundation\Response

Create a new source in the table

newSourcesAction(\Symfony\Component\HttpFoundation\Request $request) : \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
Route

("/new", name="sources_new", methods={"GET","POST"})

Arguments

$request

\Symfony\Component\HttpFoundation\Request

Response

\Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response

Show a source from the table

showSourcesAction(\App\Entity\Sources $source) : \Symfony\Component\HttpFoundation\Response
Route

("/{id}", name="sources_show", methods={"GET"})

Arguments

Response

\Symfony\Component\HttpFoundation\Response