<?php

namespace Sven\FlexEnv;

use Illuminate\Support\ServiceProvider;

class FlexEnvServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->app['env:set'] = $this->app->share(function () {
            return new Commands\SetEnv();
        });

        $this->app['env:get'] = $this->app->share(function () {
            return new Commands\GetEnv();
        });

        $this->app['env:delete'] = $this->app->share(function () {
            return new Commands\DeleteEnv();
        });

        $this->app['env:list'] = $this->app->share(function () {
            return new Commands\ListEnv();
        });

        $this->commands(
            'env:set',
            'env:get',
            'env:delete',
            'env:list'
        );
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}

<?php

namespace Sven\FlexEnv;

use Illuminate\Support\ServiceProvider;

class FlexEnvServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->commands([
            Commands\SetEnv::class,
            Commands\GetEnv::class,
            Commands\DeleteEnv::class,
            Commands\ListEnv::class,
        ]);
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return [
            Commands\SetEnv::class,
            Commands\GetEnv::class,
            Commands\DeleteEnv::class,
            Commands\ListEnv::class,
        ];
    }
}

Fix service provider for Laravel 5.4
Fix service provider for Laravel 5.4

Closes #17
