Answer the question
In order to leave comments, you need to log in
Symfony - Class, methods calling methods through pseudo-variable $this, how to do it right?
Hello everyone,
there is a controller or service, etc.
This is a simple class:
public function index(Request $request, string $anyVariable){
anyCode...
$secondMethod = $this->secondMethod($request, $anyVariable)
if($secondMethod){
dosomething...
}
}
public function secondMethod(Request $request, string $anyVariable){
anyCode...
return true;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question