GuilhermeGuitte\BehatLaravel\BehatLaravelServiceProvider::register PHP Method

register() public method

Register the commands.
public register ( ) : void
return void
    public function register()
    {
        $config = Yaml::parse(file_get_contents(base_path() . '/behat.yml'));
        $this->app['command.behat.install'] = $this->app->share(function ($app) {
            return new BehatLaravelCommand();
        });
        $this->commands('command.behat.install');
        $this->app['command.behat.run'] = $this->app->share(function ($app) use($config) {
            return new RunBehatLaravelCommand($config);
        });
        $this->commands('command.behat.run');
        $this->app['command.behat.feature'] = $this->app->share(function ($app) use($config) {
            return new FeatureBehatLaravelCommand($config);
        });
        $this->commands('command.behat.feature');
        $this->app['command.behat.generate_doc'] = $this->app->share(function ($app) use($config) {
            return new DocumentationCommand($config);
        });
        $this->commands('command.behat.generate_doc');
    }
BehatLaravelServiceProvider