laracasts / Reusable-Repositories

So you're using repositories, but have found the process of constantly reimplementing common methods to be cumbersome?
https://laracasts.com/lessons/repositories-and-inheritance
17 stars 2 forks source link

when is Acme/Repos/DbRepository.php construct execution case? #3

Open dbwhddn10 opened 10 years ago

dbwhddn10 commented 10 years ago

Acme/Repos/DbRepository.php

    /**
     * @param $model
     */
    function __construct($model)
    {
        $this->model = $model;
    }

i think that above code is not need

when is this construct execute?