class Services3
{
public function __construct(string $pathToFolder)
{
}
}
//...
return[
'Project\Service\Service3' => DI\Create()->constructor(DI\get('pathToFolder')),
]
//...
$controller = $app->get($Сontroller);
$controller->$Action(...$matches);