<?php

namespace Kohana\Sentinel;

use Cartalyst\Sentinel\Native\SentinelBootstrapper;
use Kohana;

class SentinelFactory
{
    /**
     * @var SentinelBootstrapper
     */
    private $bootstrapper;

    public function __construct()
    {
        $config = Kohana::$config->load('sentinel')->get('config');

        $this->bootstrapper = new SentinelBootstrapper($config);
    }

    /**
     * @return \Cartalyst\Sentinel\Sentinel
     */
    public function create()
    {
        return $this->bootstrapper->createSentinel();
    }
}

<?php

namespace Kohana\Sentinel;

use Cartalyst\Sentinel\Native\SentinelBootstrapper;
use Kohana;

class SentinelFactory
{
    /**
     * @var null|array
     */
    private $config;

    public function __construct()
    {
        $this->config = Kohana::$config->load('sentinel')->get('config');
    }

    /**
     * @return \Cartalyst\Sentinel\Sentinel
     */
    public function create()
    {
        return (new SentinelBootstrapper($this->config))->createSentinel();
    }
}

Enable users to bootstrap sentinel after kohana initialization
Enable users to bootstrap sentinel after kohana initialization
