Larabros\Elogram\Providers\EntityServiceProvider::register PHP Method

register() public method

Use the register method to register items with the container via the protected $this->container property or the getContainer method from the ContainerAwareTrait.
public register ( ) : void
return void
    public function register()
    {
        $adapter = $this->getContainer()->get(AdapterInterface::class);
        $this->getContainer()->share('repo.user', new UsersRepository($adapter));
        $this->getContainer()->share('repo.media', new MediaRepository($adapter));
        $this->getContainer()->share('repo.comment', new CommentsRepository($adapter));
        $this->getContainer()->share('repo.like', new LikesRepository($adapter));
        $this->getContainer()->share('repo.tag', new TagsRepository($adapter));
        $this->getContainer()->share('repo.location', new LocationsRepository($adapter));
    }
EntityServiceProvider