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
{% set jsonp = app.request.query.get('callback') %} | |
{% if jsonp %}{{ jsonp }}({% endif %} | |
{% block data %}{% if is_json|default(false) %}{{ data|raw }}{% else %}{{ data|json_encode|raw }}{% endif %}{% endblock %} | |
{% if jsonp %});{% endif %} |
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/app/config/security.yml b/app/config/security.yml | |
index 336f4d8..b346131 100644 | |
--- a/app/config/security.yml | |
+++ b/app/config/security.yml | |
@@ -1,6 +1,6 @@ | |
security: | |
encoders: | |
- Ormigo\Bundle\ReportingBundle\Security\UserProxy: | |
+ Ormigo\Bundle\ReportingBundle\Model\User: | |
algorithm: sha512 |
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 Ormigo\Bundle\OrmigoBundle; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Ormigo\Bundle\OrmigoBundle\DependencyInjection\Compiler\RegisterStreamsPass; | |
/** |
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 Ormigo\Behat\Context; | |
class SymfonyPropelAclContext extends BehatContext | |
{ | |
/** | |
* @Given /^(?P<user>(user )?)"(?P<securityIdentity>[^"]+)" is (?P<granting>(granted|denied)) access (?P<mask>\d+) for (?P<class>(class )?)"(?P<objectIdentity>[^"]+)"( identified by "(?P<objectIdentifier>[^"]+)")?( on field "(?P<field>[^"]+)")?( with strategy "(?P<strategy>[^"]+)")?$/ | |
*/ | |
public function updateAce($user, $securityIdentity, $granting, $mask, $class, $objectIdentity, $objectIdentifier = null, $field = null, $strategy = '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 | |
namespace Ormigo\Tests; | |
abstract class AbstractTest extends \PHPUnit_Framework_TestCase | |
{ | |
/** | |
* Apply expectations for an \Iterator on a mock object. | |
* | |
* @see http://php.net/Iterator |
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 Ormigo\Tests; | |
abstract class AbstractTest extends \PHPUnit_Framework_TestCase | |
{ | |
/** | |
* Apply expectations for a \Countable on a mock object. | |
* | |
* @see http://php.net/Countable |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<database name="default" defaultIdMethod="native" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xsd.propelorm.org/1.6/database.xsd"> | |
<table name="entry" phpName="Entry"> | |
<column name="id" type="integer" autoIncrement="true" primaryKey="true" /> | |
<column name="value" type="varchar" size="255" required="true" /> | |
<behavior name="archivable"> | |
<parameter name="archive_on_insert" value="true" /> | |
<parameter name="archive_on_update" value="true" /> | |
<parameter name="archive_on_delete" value="true" /> |
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
var MapView = Backbone.View.extend({ | |
/** | |
* Combine the boundaries of a list of Polygons into one boundary. | |
* | |
* The resulting boundary may for example be used in Map.fitBounds(). | |
* | |
* @param {google.maps.Polygon[]} | |
* | |
* @return {google.maps.LatLngBounds} | |
*/ |
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 Ormigo\Bundle\OrmigoBundle\Form\Storage; | |
use Craue\FormFlowBundle\Storage\StorageInterface; | |
/** | |
* This storage is implemented against native MongoDB. | |
* | |
* The benefit from this is the separated persistent of the form flow data from the 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
<?php | |
namespace Sternenbund\Bundle\ApplicationBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller as BaseController; | |
use PropelObjectCollection; | |
abstract class AbstractController extends BaseController | |
{ |