App\Http\Controllers\ProjectsController::__construct PHP Method

__construct() public method

Create a new controller instance.
public __construct ( App\Repositories\Project\ProjectInterface $project, ProjectForm $projectForm, App\Repositories\Recipe\RecipeInterface $recipe, App\Repositories\Server\ServerInterface $server, App\Repositories\User\UserInterface $user ) : void
$project App\Repositories\Project\ProjectInterface
$projectForm App\Services\Form\Project\ProjectForm
$recipe App\Repositories\Recipe\RecipeInterface
$server App\Repositories\Server\ServerInterface
$user App\Repositories\User\UserInterface
return void
    public function __construct(ProjectInterface $project, ProjectForm $projectForm, RecipeInterface $recipe, ServerInterface $server, UserInterface $user)
    {
        $this->middleware('auth');
        $this->middleware('acl');
        $this->project = $project;
        $this->projectForm = $projectForm;
        $this->recipe = $recipe;
        $this->server = $server;
        $this->user = $user;
    }