PHP code example of romaricdrigon / orchestra-bundle
1. Go to this page and download the library: Download romaricdrigon/orchestra-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/ */
romaricdrigon / orchestra-bundle example snippets
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new RomaricDrigon\OrchestraBundle\RomaricDrigonOrchestraBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
);
use RomaricDrigon\OrchestraBundle\Domain\Entity\EntityInterface;
class SomeEntity implements EntityInterface
{
public function getId()
{
return ...
use RomaricDrigon\OrchestraBundle\Domain\Entity\EntityInterface;
use RomaricDrigon\OrchestraBundle\Domain\Entity\ListableEntityInterface;
class SomeEntity implements EntityInterface, ListableEntityInterface
{
public function viewListing()
{
return ['some data', 'some more', '...'];
}
use RomaricDrigon\OrchestraBundle\Domain\Repository\RepositoryInterface;
use RomaricDrigon\OrchestraBundle\Annotation\Name;
class MyRepository implements RepositoryInterface
{
use RomaricDrigon\OrchestraBundle\Domain\Doctrine\BaseRepository;
use RomaricDrigon\OrchestraBundle\Annotation\Name;
class MyRepository implements BaseRepository
{
public function someMethod()
{
$objectManager = $this->objectManager;
$doctrineRepository = $this->doctrineRepository;
...
use RomaricDrigon\OrchestraBundle\Domain\Repository\RepositoryInterface;
use RomaricDrigon\OrchestraBundle\Annotation as Orchestra;
/**
* @Orchestra\Name("CustomName")
*/
class MyRepository implements RepositoryInterface
{
use RomaricDrigon\OrchestraBundle\Domain\Repository\RepositoryInterface;
use RomaricDrigon\OrchestraBundle\Annotation as Orchestra;
class MyRepository implements RepositoryInterface
{
/**
* @Orchestra\Hidden
*/
public function hiddenMethod()
{
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.