This file contains hidden or 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
@ECHO OFF | |
if exist "app/console" ( | |
SET CONSOLE="app/console" | |
) | |
if exist "bin/console" ( | |
SET CONSOLE="bin/console" | |
) | |
IF NOT DEFINED CONSOLE ( | |
echo "No console found" |
This file contains hidden or 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 Oro\Bundle\WorkflowBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Yaml\Yaml; |
This file contains hidden or 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
<% if(!stepFrom || stepFrom.get('name')) { | |
var stepFromName = stepFrom ? stepFrom.get('name') : ''; | |
%> | |
<div class="control-group"> | |
{{ _self.render_label("oro.workflow.form.from_step.label"|trans, true, "oro.workflow.workflowdefinition.transition.step_from.tooltip") }} | |
<div class="controls"> | |
<select name="step_from" data-validation="{{ requiredConstraint|json_encode }}" | |
<% if (name && !_is_clone) { %>disabled="disabled"<% } %> | |
> | |
<option value=""></option> |
This file contains hidden or 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
public function saveValue($key, $value, $locale, $domain = self::DEFAULT_DOMAIN, $scope = Translation::SCOPE_SYSTEM) | |
{ | |
$translationValue = $this->findValue($key, $locale, $domain); | |
if (!$this->canUpdateTranslation($scope, $translationValue)) { | |
return null; | |
} | |
if (!$value && $translationValue) { | |
$this->getEntityManager(Translation::class)->remove($translationValue); | |
return null; |
This file contains hidden or 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
public function testRebuildCache() | |
{ | |
$translator = $this->getContainer()->get('translator.default'); | |
$key = uniqid('TRANSLATION_KEY_', true); | |
$domain = LoadTranslations::TRANSLATION_KEY_DOMAIN; | |
$locale = LoadLanguages::LANGUAGE2; | |
$expectedValue = uniqid('TEST_VALUE_', true) . ''; | |
$this->manager->saveValue($key, $expectedValue, $locale, $domain); |
This file contains hidden or 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 | |
/** | |
* @file | |
* API functions for processing and sending e-mail. | |
*/ | |
/** | |
* Auto-detect appropriate line endings for e-mails. | |
* |
This file contains hidden or 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 HomeNest\Bundle\ThemeBundle\Security\Authorization\Voter; | |
use ED\BlogBundle\Security\Authorization\Voter\ArticleVoter as EdArticleVoter; | |
class OverriddenArticleVoter extends EdArticleVoter | |
{ | |
public function supportsClass($class) | |
{ | |
try { |
NewerOlder