This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id" : "sha256:05408207bbf5bd8a2083a4d14defbc743663fa6fb1101fc88c05ef02d7457683", | |
"classTransformers" : [ | |
"openblocks.asm.OpenBlocksClassTransformer" | |
], | |
"filenames" : [ | |
"OpenBlocks-Experimental-1.2.2-snapshot-75.jar" | |
], | |
"mods" : [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['core/Renderer'], function (Renderer) { | |
"use strict"; | |
return new (Renderer.extend({ | |
render: function (target, delta, game) { | |
var viewport = game.getViewport(); | |
var canvas = viewport.getCanvas(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Player extends Actor | |
{ | |
function setRenderer(IPlayerRenderer) {} | |
function render(game, delta) { | |
this.renderer.render(this); | |
} | |
} | |
class CanvasPlayerRenderer extends CanvasRenderer implements IPlayerRenderer | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lowpress\CmsBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
* @ORM\InheritanceType("JOINED") | |
* @ORM\DiscriminatorColumn(name="discr", type="string") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lowpress\CmsBundle\Doctrine; | |
use Doctrine\ORM\Events; | |
use Doctrine\ORM\Mapping\ClassMetadataInfo; | |
class InheritanceListener implements \Doctrine\Common\EventSubscriber { | |
private $driver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lowpress\CmsBundle; | |
use Symfony\Component\HttpKernel\Bundle\Bundle, | |
Lowpress\CmsBundle\Doctrine\InheritanceListener; | |
class LowpressCmsBundle extends Bundle | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lowpress\ExampleBundle\Tests\Entity; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
class ExampleInheritanceFunctionalTest extends WebTestCase | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lowpress\CmsBundle\Tests\Entity; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
class InheritanceFunctionalTest extends WebTestCase | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lowpress\ExampleBundle\DataFixtures\ORM; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Doctrine\Common\DataFixtures\AbstractFixture; | |
use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
use Lowpress\ExampleBundle\Entity\ContentPage; | |
class LoadContentPageData extends AbstractFixture implements OrderedFixtureInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lowpress\CmsBundle\DataFixtures\ORM; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Doctrine\Common\DataFixtures\AbstractFixture; | |
use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
use Lowpress\CmsBundle\Entity\Path; | |
use Lowpress\CmsBundle\Entity\HtmlPage; |