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
$dataManager = $this->getContainer()->get('liip_imagine.data.manager'); | |
$filterManager = $this->getContainer()->get('liip_imagine.filter.manager'); | |
$assetManager = $this->getContainer()->get('eris_fo.assets_manager'); | |
$variationManager = $this->getContainer()->get('eris_fo.assets.variation_generator'); | |
// works using the custom data loader as set in imaginebundle config | |
$fullSizeImagePath = '/images/content/advertising.png'; | |
$filters = $this->getContainer()->getParameter('assets_image_variations'); | |
$targetAssetsBucket = 'images'; |
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 | |
/** | |
* A Mink driver for Selenium2. | |
* | |
* Compared to the default Selenium2Driver, it allows us to get a different Webdriver | |
*/ | |
namespace XXX\Behat\KToolsExtension\Driver; | |
use Behat\Mink\Element\NodeElement; |
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 app\controllers; | |
use yii\web\Response; | |
use xmlrpc_server; | |
use xmlrpcval; | |
use xmlrpcresp; | |
class XmlrpcController extends \yii\web\Controller |
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 Kaliop\Behat\KToolsExtension\Listener; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Behat\Behat\EventDispatcher\Event\ScenarioTested; | |
use Behat\Behat\EventDispatcher\Event\OutlineTested; | |
use Behat\Behat\EventDispatcher\Event\ScenarioLikeTested; | |
use Kaliop\Behat\KToolsExtension\Context\SharedContext; |
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
namespace Kaliop\AProject\PageObjects\Pages; | |
use SensioLabs\Behat\PageObjectExtension\PageObject\Page; | |
use Behat\Mink\Session; | |
use SensioLabs\Behat\PageObjectExtension\PageObject\Factory; | |
abstract class BasePage extends Page | |
{ | |
protected $aService; |
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 | |
/** | |
* A simple process manager, forking jobs to run in parallel. Works on linux and windows. | |
* | |
* @copyright G. Giunta | |
* @license GPL v2 | |
* | |
* @todo add more methods? f.e. one to kill any the executing processes | |
*/ |
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 | |
class ForwardAdapter | |
{ | |
private $object; | |
private $properties; | |
private $staticproperties; |
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
vi /var/www/ezpublish4/config.php | |
# content of the file: | |
<?php | |
include( 'extension/ezperformancelogger/classes/ezxhproflogger.php' ); | |
eZXHProfLogger::start(); |
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
sudo apt-get install graphviz | |
sudo pecl config-set preferred_state beta | |
sudo pecl install xhprof | |
# enable xhprof by creating a config. file for php: | |
sudo vi /etc/php5/apache2/conf.d/xhprof.ini | |
#in there put: | |
extension=xhprof.so | |
sudo service apache2 restart |
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
cd extension/ezperformancelogger/bin/scripts | |
chmod 755 ezmuninperflogger_ | |
sudo ln –s /var/www/ezpublish4/extension/ezperformancelogger/bin/scripts/ezmuninperflogger_ /usr/share/munin/plugins/ezmuninperflogger_ | |
# patch /var/www/ezpublish4/extension/ezperformancelogger/bin/scripts/ezmuninperflogger_ : hashbang line is wrong, use instead | |
#!/bin/bash | |
# create (as root) /etc/munin/plugin-conf.d/ezmuninperflogger | |
[ezmuninperflogger_*] | |
env.php /usr/bin/php |