Example Controller action
use Symfony\Component\HttpFoundation\Request;
public function exampleAction(Request $request)
{
/*
* First you need object ready for validation.
* You can create new object or load it from database.
* You need to add some constraints for this obj...