<?php
namespace ContainerZxMoVyd;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getManagerService extends App_KernelDevDebugContainer
{
/**
* Gets the public 'Pimcore\Workflow\Manager' shared autowired service.
*
* @return \Pimcore\Workflow\Manager
*/
public static function do($container, $lazyLoad = true)
{
include_once \dirname(__DIR__, 4).'/vendor/pimcore/pimcore/lib/Workflow/Manager.php';
$a = ($container->privates['workflow.registry'] ?? $container->load('getWorkflow_RegistryService'));
if (isset($container->services['Pimcore\\Workflow\\Manager'])) {
return $container->services['Pimcore\\Workflow\\Manager'];
}
$b = ($container->services['Pimcore\\Workflow\\ExpressionService'] ?? $container->load('getExpressionServiceService'));
if (isset($container->services['Pimcore\\Workflow\\Manager'])) {
return $container->services['Pimcore\\Workflow\\Manager'];
}
$c = ($container->services['event_dispatcher'] ?? $container->getEventDispatcherService());
if (isset($container->services['Pimcore\\Workflow\\Manager'])) {
return $container->services['Pimcore\\Workflow\\Manager'];
}
$container->services['Pimcore\\Workflow\\Manager'] = $instance = new \Pimcore\Workflow\Manager($a, ($container->privates['Pimcore\\Workflow\\EventSubscriber\\NotesSubscriber'] ?? $container->load('getNotesSubscriberService')), $b, $c);
$instance->registerWorkflow('milestone_workflow', ['label' => 'Milestone Workflow', 'priority' => 0, 'type' => 'state_machine']);
$instance->addPlaceConfig('milestone_workflow', 'created', ['label' => 'Upload Timesheet', 'title' => 'Timesheet Uploaded', 'color' => 'blue', 'permissions' => [0 => ['condition' => 'is_fully_authenticated() and \'ROLE_PIMCORE_ADMIN\' or \'ROLE_PROJECTMANAGER\' in role_names'], 1 => ['publish' => false, 'unpublish' => false]], 'colorInverted' => false, 'visibleInHeader' => true]);
$instance->addPlaceConfig('milestone_workflow', 'send_for_approval', ['label' => 'SEND FOR APPROVAL', 'color' => 'orange', 'permissions' => [0 => ['condition' => 'is_fully_authenticated() and \'ROLE_DELIVERYMANAGER\' or \'ROLE_PIMCORE_ADMIN\' in role_names', 'publish' => false], 1 => ['publish' => true, 'modify' => false], 2 => ['modify' => true]], 'title' => '', 'colorInverted' => false, 'visibleInHeader' => true]);
$instance->addPlaceConfig('milestone_workflow', 'approve', ['label' => 'APPROVE', 'color' => 'green', 'title' => '', 'colorInverted' => false, 'visibleInHeader' => true, 'permissions' => []]);
$instance->addPlaceConfig('milestone_workflow', 'reject', ['label' => 'REJECT', 'color' => 'red', 'permissions' => [0 => ['publish' => false, 'unpublish' => false], 1 => ['publish' => false, 'unpublish' => false]], 'title' => '', 'colorInverted' => false, 'visibleInHeader' => true]);
$instance->addPlaceConfig('milestone_workflow', 're_edit', ['label' => 'RE-EDIT', 'color' => 'orange', 'permissions' => [0 => ['condition' => 'is_fully_authenticated() and \'ROLE_PROJECTMANAGER\' or \'ROLE_PIMCORE_ADMIN\' in role_names', 'publish' => false], 1 => ['publish' => true, 'modify' => false], 2 => ['modify' => true]], 'title' => '', 'colorInverted' => false, 'visibleInHeader' => true]);
$instance->addPlaceConfig('milestone_workflow', 're_approve', ['label' => 'RE-APPROVE', 'color' => 'green', 'permissions' => [0 => ['publish' => false, 'unpublish' => false], 1 => ['publish' => true, 'unpublish' => true]], 'title' => '', 'colorInverted' => false, 'visibleInHeader' => true]);
$instance->addPlaceConfig('milestone_workflow', 'request_for_delete', ['label' => 'REQUEST-FOR-DELETE', 'color' => 'red', 'permissions' => [0 => ['condition' => 'is_fully_authenticated() and \'ROLE_PMOCOORDINATOR\' or \'ROLE_PIMCORE_ADMIN\' in role_names', 'publish' => false], 1 => ['publish' => true, 'delete' => true], 2 => ['delete' => false]], 'title' => '', 'colorInverted' => false, 'visibleInHeader' => true]);
return $instance;
}
}