<?php
namespace App\Helper;

use App\Options\SuitwalkOptions;
use Interop\Container\ContainerInterface;

class SuitwalkOptionsHelperFactory
{
    public function __invoke(ContainerInterface $container)
    {
        return new SuitwalkOptionsHelper(
            $container->getServiceLocator()->get(SuitwalkOptions::class)
        );
    }
}

<?php
namespace App\Helper;

use App\Options\SuitwalkOptions;
use Interop\Container\ContainerInterface;

class SuitwalkOptionsHelperFactory
{
    public function __invoke(ContainerInterface $container)
    {
        return new SuitwalkOptionsHelper(
            $container->get(SuitwalkOptions::class)
        );
    }
}

Make use of service manager v3
Make use of service manager v3
