Rename the Plan bundle to Program across config, routes, menus, and controllers (Plan -> Initiative), bump version to 0.16.0, and introduce new audience and UTM taxonomy routes and permissions to support the expanded Programs feature set.
23 lines
612 B
PHP
23 lines
612 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace MauticPlugin\ProgramBundle\Validator\Constraints;
|
|
|
|
use Symfony\Component\Validator\Constraint;
|
|
|
|
/**
|
|
* A task's dependency edges must not form a cycle, and must not point at the task itself.
|
|
*/
|
|
class ValidTaskDependency extends Constraint
|
|
{
|
|
public const SELF_REFERENCE = 'mautic.program.task.dependency.self';
|
|
public const CYCLE = 'mautic.program.task.dependency.cycle';
|
|
public const OTHER_PLAN = 'mautic.program.task.dependency.other_plan';
|
|
|
|
public function getTargets(): string|array
|
|
{
|
|
return self::CLASS_CONSTRAINT;
|
|
}
|
|
}
|