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 "ezc/Base/base.php"; | |
require_once "Zend/Loader/Autoloader.php"; | |
$autoloader = Zend_Loader_Autoloader::getInstance(); | |
$autoloader = Zend_Loader_Autoloader::getInstance(); | |
$autoloader->pushAutoloader(array('ezcBase', 'autoload'), 'ezc'); | |
class EntitySchemaProvider extends Zend_Tool_Framework_Provider_Abstract |
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 | |
/** | |
* PHPUnit | |
* | |
* Copyright (c) 2002-2009, Sebastian Bergmann <sb@sebastian-bergmann.de>. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: |
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
abstract class Whitewashing_Webdav_SimplerBackend extends ezcWebdavSimpleBackend | |
{ | |
protected $liveProperties = array( | |
'getcontentlength', | |
'getlastmodified', | |
'creationdate', | |
'displayname', | |
'getetag', | |
'getcontenttype', | |
'resourcetype', |
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 Symfony\CMF\Frontend; | |
use PHPCR\SessionInterface; | |
class ContentManager | |
{ | |
private $session; |
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
diff --git a/Object/Freezer/Storage/CouchDB.php b/Object/Freezer/Storage/CouchDB.php | |
index f997e74..26abc11 100644 | |
--- a/Object/Freezer/Storage/CouchDB.php | |
+++ b/Object/Freezer/Storage/CouchDB.php | |
@@ -72,6 +72,11 @@ class Object_Freezer_Storage_CouchDB extends Object_Freezer_Storage | |
protected $port; | |
/** | |
+ * @var array | |
+ */ |
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
Using a static OptionSupport class that automatically writes options into properties AND fields extend it. | |
+ Options are set in the very beginning of the constructor | |
+ Concise | |
+ Error if option is not supported | |
+ Everything is a property, no special treatment of options | |
+ Good performance | |
+ Static options can be hidden from public access | |
- Private properties wouldn't work, access not allowed from parent classes. |
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 | |
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
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 "Doctrine/Common/ClassLoader.php"; | |
use Doctrine\Common\ClassLoader; | |
use Doctrine\Common\EventArgs; | |
use Doctrine\Common\EventManager; | |
$loader = new ClassLoader(); | |
$loader->register(); |
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 | |
class MyFormType extends AbstractFormType | |
{ | |
public function configure(FormBuilder $builder, array $options) | |
{ | |
$builder->setDataClass("MyProject\FooEntity"); | |
$builder->add('my.sub_form'); | |
$builder->add('text', 'name', array('max_length' => 127, 'id' => 'foo')); | |
$builder->add('date', 'created'); |
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 Whitewashing\BlogBundle\Controller; | |
use Symfony\Component\Security\Core\User\UserInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
/** | |
* | |
*/ |