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.
22 lines
493 B
PHP
22 lines
493 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace MauticPlugin\ProgramBundle\Validator\Constraints;
|
|
|
|
use Symfony\Component\Validator\Constraint;
|
|
|
|
/**
|
|
* Class constraint for any DateRangeInterface (Plan, Task): when both dates are set, endDate must be
|
|
* on or after startDate.
|
|
*/
|
|
class EndDateAfterStartDate extends Constraint
|
|
{
|
|
public string $message = 'mautic.program.end_date.before_start_date';
|
|
|
|
public function getTargets(): string
|
|
{
|
|
return self::CLASS_CONSTRAINT;
|
|
}
|
|
}
|