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
services: | |
My\Custom\Service: | |
class: My\Custom\Service | |
arguments: | |
- "@=service('My\\\\Custom\\\\Config').getCustomString()" | |
- !php/const My\Custom\ServiceConstants::MY_CONSTANT | |
- "@=container.hasParameter('some_param') ? parameter('some_param') : 'default_value'" |
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 App\Controller; | |
use EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController as BaseAdminController; | |
/** | |
* General controller for administrating all entities | |
*/ | |
class AdminController extends BaseAdminController |
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
// global array | |
array = new Array(); | |
Selenium.prototype.doStoreCellValue = function(variableName,cellPosition) | |
{ | |
var xy = cellPosition.split(","); | |
var x = xy[0] - 1; | |
var y = xy[1] - 1; | |
var value = array[x][y]; | |
storedVars[variableName] = value; |
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 | |
/** | |
* array_merge_recursive does indeed merge arrays, but it converts values with duplicate | |
* keys to arrays rather than overwriting the value in the first array with the duplicate | |
* value in the second array, as array_merge does. I.e., with array_merge_recursive, | |
* this happens (documented behavior): | |
* | |
* array_merge_recursive(array('key' => 'org value'), array('key' => 'new value')); | |
* => array('key' => array('org value', 'new value')); |
NewerOlder