Configs exist in three levels:
- local
- dev | stg | prod
- default (no environment)
There are three types of configs:
<?php | |
/* Since the group name is specified, "Default" will be assigned automatically and | |
* the implicity group name "Registration" (based on containing class' name) will | |
* also not be assigned. | |
*/ | |
class Registration | |
{ | |
public $field; |
<?php | |
namespace Application\Validator\Constraints; | |
use Symfony\Components\Validator\Constraint; | |
class DoctrineOdmUnique extends Constraint | |
{ | |
public $message = 'OpenSky.Validator.DoctrineOdmUnique.message'; | |
public $documentManager; |
<?php | |
/** | |
* ServerGrove's shared Symfony libraries are not accessible within chrooted | |
* sessions on shared hosting, which means the symfony console command is | |
* unusable. The following conditional will allow you to fall back to a | |
* local copy of Symfony in your project's vendor directory and still make | |
* use of ServerGrove's up-to-date libraries elsewhere. | |
* | |
* Note: you likely won't have access to Doctrine or Propel commands, since |
<?php | |
function fitzify ($input) { | |
return implode(\PHP_EOL, array_map(function($line) { | |
return $line . (rand(1, 4) == 1 ? str_repeat("\t", rand(1, 4)) : ''); | |
}, explode(\PHP_EOL, $input))); | |
} | |
$a = file_get_contents(__FILE__); | |
echo fitzify($a); |
var cols = ['customers', 'sellers', 'suppliers']; | |
for (j in cols) { | |
db[cols[j]].find({'addresses.country':/[a-z]/}).forEach(function(d){ | |
for (i in d.addresses) { | |
d.addresses[i].country = d.addresses[i].country.toUpperCase(); | |
} | |
db[cols[j]].save(d); | |
}); | |
} |
<?php | |
namespace OpenSky\AdminBundle\Listener; | |
use Symfony\Component\EventDispatcher\Event; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
use Symfony\Component\HttpKernel\Log\LoggerInterface; | |
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; | |
/** |
# You may add here your | |
# server { | |
# ... | |
# } | |
# statements for each of your virtual hosts | |
server { | |
listen 80 default; | |
server_name domain.com; |
Document\PasswordContainer: | |
type: document | |
collection: password_container | |
fields: | |
password: | |
type: string | |
salt: | |
type: string | |
algorithm: | |
type: string |
Nov 11 11:00:10 <lsmith> ok lets start .. | |
Nov 11 11:00:33 <lsmith> so i am quite thrilled to see so many people here .. and also that fabpot managed to come after all | |
Nov 11 11:01:13 <lsmith> i think we do not need to ask for permission to speak, but try to make sure that stuff that is said is well thought out .. and rather take it slower than faster | |
Nov 11 11:01:34 <lsmith> also i think when we start on a topic, it would be good for the person who proposed the topic to briefly introduce the topic | |
Nov 11 11:01:52 * nicobn ([email protected]) has joined #symfony-dev | |
Nov 11 11:02:07 <lsmith> also when saying something for the first time with a nickname that isnt obvious as to what the name that is used on the mailinglist, one should mention the name the first time speaking | |
Nov 11 11:02:24 <lsmith> ok .. so the first topic today is this IRC meeting process | |
Nov 11 11:02:34 <lsmith> i proposed that one .. my name is Lukas Smith btw :) | |
Nov 11 11:02:53 <lsmith> i came up with this IRC meeting idea, since t |