is there any way to bind interface with class ? like laravel provides the bind function to map interface with class.
App::bind('Raid\Service\Log\LogInterface', 'Raid\Service\Log\Log'); // laravel example
I would like to pass in constructor of class
class UsersController extends AbstractController
{
private $users;
public function __construct(IUsersRepository $usersRepository)
{
$this->users = $usersRepository;
}
}