<?php

namespace Bolt\Extension\Bolt\Members\Provider;

use Bolt\Extension\Bolt\Members\Members;
use Silex\Application;
use Silex\ServiceProviderInterface;

class MembersServiceProvider implements ServiceProviderInterface
{
    public function register(Application $app)
    {
        $app['members'] = $app->share(
            function ($app) {
                $members = new Members($app);

                return $members;
            }
        );
    }

    public function boot(Application $app)
    {
    }
}

<?php

namespace Bolt\Extension\Bolt\Members\Provider;

use Bolt\Extension\Bolt\Members\Members;
use Bolt\Extension\Bolt\Members\Profiles;
use Silex\Application;
use Silex\ServiceProviderInterface;

class MembersServiceProvider implements ServiceProviderInterface
{
    public function register(Application $app)
    {
        $app['members'] = $app->share(
            function ($app) {
                $members = new Members($app);

                return $members;
            }
        );

        $app['members.profiles'] = $app->share(
            function ($app) {
                $profiles = new Profiles($app);

                return $profiles;
            }
        );
    }

    public function boot(Application $app)
    {
    }
}

Add the profiles as a provider
Add the profiles as a provider