PHP code example of dariotilgner / easyadmin-extension-bundle
1. Go to this page and download the library: Download dariotilgner/easyadmin-extension-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/ */
dariotilgner / easyadmin-extension-bundle example snippets
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new AlterPHP\EasyAdminExtensionBundle\EasyAdminExtensionBundle(),
);
}
// ...
}
class Animation
{
use ValueListTrait;
/**
* @var string
*
* @ORM\Id
* @ORM\Column(type="guid")
*/
private $id;
/**
* @var bool
*
* @ORM\Column(type="boolean", nullable=false)
*/
private $enabled;
/**
* @var string
*
* @ORM\Column(type="string", length=31)
*/
protected $status;
/**
* @var string
*
* @ORM\Column(type="string", length=31, nullable=false)
*/
private $type;
/**
* @var int
*
* @ORM\Column(type="integer", nullable=false)
*/
private $maxSubscriptions;
/**
* @var Organization
*
* @ORM\ManyToOne(targetEntity="App\Entity\Organization", inversedBy="animations")
* @ORM\JoinColumn(nullable=false)
*/
private $organization;
const STATUS_DRAFT = 'draft';
const STATUS_PUBLISHED = 'published';
const STATUS_OPEN = 'open';
const STATUS_ACTIVE = 'active';
const STATUS_CLOSED = 'closed';
const STATUS_ARCHIVED = 'archived';
}
class User
{
public $name;
public $title;
public $references;
}