Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Scheduler] Mark component as non experimental #51246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Symfony/Component/Scheduler/Attribute/AsSchedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* Service tag to autoconfigure schedules.
*
* @author Fabien Potencier <[email protected]>
*
* @experimental
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class AsSchedule
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Scheduler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CHANGELOG
6.4
---

* Make component non experimental
* Add `--date` to `schedule:debug`
* Allow setting timezone of next run date in CronExpressionTrigger
* Add `AbstractTriggerDecorator`
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/Scheduler/Command/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
* Command to list/debug schedules.
*
* @author Kevin Bond <[email protected]>
*
* @experimental
*/
#[AsCommand(name: 'debug:scheduler', description: 'List schedules and their recurring messages')]
final class DebugCommand extends Command
Expand Down
3 changes: 0 additions & 3 deletions src/Symfony/Component/Scheduler/Generator/Checkpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
use Symfony\Component\Lock\LockInterface;
use Symfony\Contracts\Cache\CacheInterface;

/**
* @experimental
*/
final class Checkpoint implements CheckpointInterface
{
private \DateTimeImmutable $time;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

namespace Symfony\Component\Scheduler\Generator;

/**
* @experimental
*/
interface CheckpointInterface
{
public function acquire(\DateTimeImmutable $now): bool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

/**
* @author Tugdual Saunier <[email protected]>
*
* @experimental
*/
final class MessageContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
use Symfony\Component\Scheduler\Schedule;
use Symfony\Component\Scheduler\ScheduleProviderInterface;

/**
* @experimental
*/
final class MessageGenerator implements MessageGeneratorInterface
{
private Schedule $schedule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

namespace Symfony\Component\Scheduler\Generator;

/**
* @experimental
*/
interface MessageGeneratorInterface
{
/**
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/Scheduler/Generator/TriggerHeap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
* @internal
*
* @extends \SplHeap<array{\DateTimeImmutable, int, RecurringMessage}>
*
* @experimental
*/
final class TriggerHeap extends \SplHeap
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
use Symfony\Component\Messenger\Stamp\StampInterface;
use Symfony\Component\Scheduler\Generator\MessageContext;

/**
* @experimental
*/
final class ScheduledStamp implements StampInterface
{
public function __construct(public readonly MessageContext $messageContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
use Symfony\Component\Scheduler\Exception\LogicException;
use Symfony\Component\Scheduler\Generator\MessageGeneratorInterface;

/**
* @experimental
*/
class SchedulerTransport implements TransportInterface
{
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
use Symfony\Component\Scheduler\Generator\MessageGenerator;
use Symfony\Component\Scheduler\ScheduleProviderInterface;

/**
* @experimental
*/
class SchedulerTransportFactory implements TransportFactoryInterface
{
public function __construct(
Expand Down
5 changes: 0 additions & 5 deletions src/Symfony/Component/Scheduler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ Scheduler Component

Provides scheduling through Symfony Messenger.

**This Component is experimental**.
[Experimental features](https://symfony.com/doc/current/contributing/code/experimental.html)
are not covered by Symfony's
[Backward Compatibility Promise](https://symfony.com/doc/current/contributing/code/bc.html).

Resources
---------

Expand Down
3 changes: 0 additions & 3 deletions src/Symfony/Component/Scheduler/RecurringMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
use Symfony\Component\Scheduler\Trigger\PeriodicalTrigger;
use Symfony\Component\Scheduler\Trigger\TriggerInterface;

/**
* @experimental
*/
final class RecurringMessage
{
private string $id;
Expand Down
3 changes: 0 additions & 3 deletions src/Symfony/Component/Scheduler/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
use Symfony\Component\Scheduler\Exception\LogicException;
use Symfony\Contracts\Cache\CacheInterface;

/**
* @experimental
*/
final class Schedule implements ScheduleProviderInterface
{
/** @var array<string,RecurringMessage> */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

namespace Symfony\Component\Scheduler;

/**
* @experimental
*/
interface ScheduleProviderInterface
{
public function getSchedule(): Schedule;
Expand Down
3 changes: 0 additions & 3 deletions src/Symfony/Component/Scheduler/Scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
use Symfony\Component\Clock\ClockInterface;
use Symfony\Component\Scheduler\Generator\MessageGenerator;

/**
* @experimental
*/
final class Scheduler
{
/**
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/Scheduler/Trigger/CallbackTrigger.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

/**
* @author Fabien Potencier <[email protected]>
*
* @experimental
*/
final class CallbackTrigger implements TriggerInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
* Use cron expressions to describe a periodical trigger.
*
* @author Fabien Potencier <[email protected]>
*
* @experimental
*/
final class CronExpressionTrigger implements TriggerInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

namespace Symfony\Component\Scheduler\Trigger;

/**
* @experimental
*/
final class ExcludeTimeTrigger extends AbstractDecoratedTrigger
{
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

use Symfony\Component\Scheduler\Exception\InvalidArgumentException;

/**
* @experimental
*/
class PeriodicalTrigger implements TriggerInterface
{
private float $intervalInSeconds = 0.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

namespace Symfony\Component\Scheduler\Trigger;

/**
* @experimental
*/
interface TriggerInterface extends \Stringable
{
/**
Expand Down