Skip to content

Instantly share code, notes, and snippets.

View brookinsconsulting's full-sized avatar
😀
Creating NeXT Generation eZ Platform Software

Brookins Consulting brookinsconsulting

😀
Creating NeXT Generation eZ Platform Software
View GitHub Profile
#!/usr/bin/env ruby
# Using this script as your post-receive hook will update mirrors using git
# push --mirror. To make this work you have to ensure that access is taken
# care of (for example by setting up .ssh/config with an SSH key for the
# user that runs the hook).
#
# To use this script populate /home/git/git-mirrors.yml with YAML like so:
# ---
# user/repo1.git:
@lolautruche
lolautruche / AdminController.php
Created June 2, 2013 19:58
eZ Publish 5 - Legacy module with a Symfony controller
<?php
/**
* AcmeTestBundle/Controller/AdminController.php
*/
namespace Acme\TestBundle\Controller;
use eZ\Bundle\EzPublishCoreBundle\Controller;
/**
* Here is your Symfony controller, defined as a service (see service definition below)
@brookinsconsulting
brookinsconsulting / README
Created November 13, 2011 01:13
Example 'member_of_role' template operator autoload configuration file and OWSimpleOperator based 'BCMemberOfRoleByUserIDOperator' class and method 'member_of_role' (both required). Provided class method 'member_of_role' can be called in PHP.
Name: BC Member Of Role (extension)
A OWSimpleOperator based template operator extension for eZ Publish ( 4.x -> 4.6 ( Community Build 2011.10 ) )
About this Gist
This Gist based solution graduated on 2011/11/12 to a full fledged, ready to use out of the box, eZ Publish based extension.
The extension based solution is ready to use with eZ Publish right out of the box with no additional configuration required.
@bchoquet-heliopsis
bchoquet-heliopsis / HelioINIZetaDBFactory.php
Created May 18, 2011 16:48
Helper returning ezcDbHandler From eZPublish database settings
<?php
class HelioINIZetaDBFactory
{
/**
* Database implementations mapping
* Key is eZPublish ImplementationAlias, Value is ezcDbFactory alias
* @var array
*/
private static $map = array(
'mysql' => 'mysql',