/** * Register the service provider. * * @return void */ public function register() { WP::setContainer($this->app); $this->registerPostBuilder(); $this->registerTermBuilder(); $this->app->singleton('wp', function () { return new WP(); }); }