<?php
/**
 * @package   awf
 * @copyright Copyright (c)2014-2026 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license   GNU GPL version 3 or later
 */

namespace Awf\Container\Defaults;

use Awf\Container\Container;
use Awf\Session\Segment;

/**
 * Session Segment service provider
 *
 * @since   1.1.0
 */
class SegmentProvider
{
	/**
	 * Returns the service.
	 *
	 * @param   Container  $c  The container calling us
	 *
	 * @return  Segment  The returned service object
	 * @since   1.1.0
	 */
	public function __invoke(Container $c): Segment
	{
		return $c->session->newSegment($c->session_segment_name);
	}

}