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
imports: | |
# .... | |
- { resource: services/session.yml } | |
framework: | |
# .... | |
session: | |
handler_id: session.handler.memcached |
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 "custom_alert.title" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" }}: {{ .Alerts.Firing | len }}{{ if gt (.Alerts.Resolved | len) 0 }}, RESOLVED: {{ .Alerts.Resolved | len }}{{ end }}{{ end }}]{{ if gt (len .GroupLabels) 0 }} Grouped by: {{ range .CommonLabels.SortedPairs }}{{ .Name }}: {{ .Value }}{{ end }}{{ end }}{{ end }} | |
{{ define "__text_alert_name" }}{{ range .Labels.SortedPairs }}{{ if eq .Name "alertname" }}{{ .Value }}{{ end }}{{ end }}{{ end }} | |
{{ define "__text_alert_summary" }}{{ range .Annotations.SortedPairs }}{{ if eq .Name "summary" }}{{ .Value }} | |
{{ end }}{{ end }}{{ end }} | |
{{ define "__text_alert_description" }}{{ range .Annotations.SortedPairs }}{{ if eq .Name "description" }}{{ .Value }}{{ end }}{{ end }}{{ end }} | |
{{ define "__text_alert_runbook_url" }}{{ range .Annotations.SortedPairs }}{{ if eq .Name "runbook_url" }} | |
:bookmark_tabs: <{{ .Value }}|Playbook>{{ end }}{{ end }}{{ end }} | |
{{ define "__text_alert_firing_item" }}:bell: {{ template "__text_alert_name" . }} | |
{{ te |
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\BlogBundle\DependencyInjection; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; | |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | |
use Symfony\Component\Config\FileLocator; | |
class AcmeBlogExtension extends Extension |
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 | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() | |
{ | |
return 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
interface Specification | |
{ | |
public function getCriteria(); | |
} | |
class FilterGroup implements Specification | |
{ | |
private $group; | |
public function __construct($group) |
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 | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
use Doctrine\ORM\Query\Lexer; | |
use Doctrine\ORM\Query\Parser; | |
use Doctrine\ORM\Query\SqlWalker; | |
/** | |
* REPLACE(str, from_str, to_str) |
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
{ | |
"require": { | |
"propel/propel-service-provider": ">=0.0.1", | |
"propel/propel1": "1.6.*", | |
"silex/silex": "1.0.*", | |
"symfony/validator": "2.1.*", | |
"willdurand/hateoas": "0.0.*", | |
"symfony/property-access": "2.2.*", | |
"symfony/yaml": "2.2.*", | |
"jms/metadata": "1.2.*", |
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 file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <fabien@symfony.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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
[vagrant@vagrant-debian-squeeze:~/www/project on develop] | |
% ./app/console propel:model:build | |
PHP Fatal error: Class 'FOS\UserBundle\Propel\om\BaseUserQuery' not found in /home/vagrant/www/project/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Propel/UserQuery.php on line 17 | |
PHP Stack trace: | |
PHP 1. {main}() /home/vagrant/www/project/app/console:0 | |
PHP 2. Symfony\Component\Console\Application->run() /home/vagrant/www/project/app/console:22 | |
PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /home/vagrant/www/project/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:106 | |
PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() /home/vagrant/www/project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68 | |
PHP 5. Symfony\Component\HttpKernel\Kernel->boot() /home/vagrant/www/project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:83 | |
PHP 6. Symfony\Component\HttpKernel\Kernel->initi |
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 BookQuery extends BaseBookQuery | |
{ | |
public function recent($nb_max = 5) | |
{ | |
return $this | |
->orderByPublishedAt('desc') | |
->limit($nb_max); | |
} |
NewerOlder