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 Acme\DemoBundle\Entity; | |
class IP | |
{ | |
/** | |
* @var integer $id | |
*/ | |
private $id; |
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
namespace L3l0\AcmeBundle; | |
use Symfony\Component\HttpKernel\Controlle\ControllerResolverInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
class ControllerChecker | |
{ | |
private $resolver; | |
private $request; |
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 Acme\DemoBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; |
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 | |
private function setPrivateProperty($object, $propertyName, $value) | |
{ | |
$reflection = new \ReflectionObject($object); | |
$property = $reflection->getProperty($propertyName); | |
$property->setAccessible(true); | |
$property->setValue($object, $value); | |
} |
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 Rd\HelpBundle\Model\Tire\Repository; | |
use Rd\HelpBundle\Model\Tire\Tire; | |
class DbalTireRepository implements TireRepository | |
{ | |
private $connection; |
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 Sk\CmsBundle\Entity; | |
class Contact | |
{ | |
private $name; | |
public function __construct(Contact\ContactName $name) | |
{ |
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 | |
require_once 'vendor/autoload.php'; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
$request = Request::createFromGlobals(); | |
$response = Response::create('Normal response'); |
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 Cocoders\File\Model; | |
class File | |
{ | |
private $id; | |
private $name; | |
private $originalName; | |
private $mimeType; |
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 L3l0\Bundle\SomethingBundle\Repository; | |
use L3l0\Something\Model\Some; | |
use L3l0\Something\Repository\SomeRepository; | |
use Doctrine\Common\Persistence\ObjectManager; | |
class DoctrineSomeRepository implements SomeRepository | |
{ |
OlderNewer