PHP code example of dukecity / command-scheduler-bundle
1. Go to this page and download the library: Download dukecity/command-scheduler-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dukecity / command-scheduler-bundle example snippets
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Dukecity\CommandSchedulerBundle\Entity\BaseScheduledCommand;
#[ORM\Entity]
#[ORM\Table(name: 'scheduled_command')]
class MyScheduledCommand extends BaseScheduledCommand
{
#[ORM\Column(type: 'string', nullable: true)]
private ?string $customField = null;
public function getCustomField(): ?string
{
return $this->customField;
}
public function setCustomField(?string $customField): static
{
$this->customField = $customField;
return $this;
}
}
sh
php bin/console make:migration
php bin/console doctrine:migrations:migrate
sh
php bin/console make:migration
php bin/console doctrine:migrations:migrate