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 | |
| return array( | |
| 'SpeckMultisite' => array( | |
| 'Session' => array( | |
| 'domainMap' => array( | |
| 'groups' => array( | |
| 'jj' => array( | |
| 'master' => 'rattletrap-juffrouwjansen-hoofddorp.nl', | |
| ) |
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
| syslog | |
| Jun 19 13:46:54 s2 kernel: Out of memory: Kill process 21531 (mysqld) score 186 or sacrifice child | |
| Jun 19 13:46:54 s2 kernel: Killed process 21531 (mysqld) total-vm:345536kB, anon-rss:92768kB, file-rss:0kB | |
| Jun 19 13:46:54 s2 kernel: init: mysql main process (21531) killed by KILL signal | |
| Jun 19 13:46:54 s2 kernel: init: mysql main process ended, respawning | |
| Jun 19 13:46:59 s2 monit[4616]: 'mysqld' process is not running | |
| Jun 19 13:47:00 s2 suhosin[306]: ALERT - configured GET variable value length limit exceeded - dropped variable 'cookie' (attacker '127.0.0.1', file '/var/www/clients/client10/web57/web/wp-admin/admin-ajax.php') | |
| Jun 19 13:47:00 s2 suhosin[303]: ALERT - configured GET variable value length limit exceeded - dropped variable 'cookie' (attacker '127.0.0.1', file '/var/www/clients/client10/web57/web/wp-admin/admin-ajax.php') |
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
| today@irc#composer | |
| regarding autoload settings in composer.json | |
| basz: What would you recommend for zf2 modules? which contain one ModuleName/Module.php and the actual code in ModuleName/src/ModuleName/ ? so namespaces are for example ModuleName\Module and ModuleName\Controllers\MyController | |
| Seldaek: basz: whaaat? | |
| Seldaek: this is fucked up | |
| basz: tell #zftalk.2 :-) | |
| Seldaek: basz: well, if it needs to be autolaoded, this makes zero sense to me | |
| Seldaek: the src/ dir should die at least |
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 execute(\Zend\Mvc\MvcEvent $e) | |
| { | |
| /** | |
| * @var \Application\Service\SiteService | |
| */ | |
| $this->site = $this->getServiceLocator()->get('Application/Service/Site'); | |
| $this->layout()->setVariable('siteDomain', strtolower($this->site->getDomain())); | |
| $this->layout()->setVariable('nextDomainUri', $this->site->getDomainUri($this->site->getNextAvailableDomain())); |
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 | |
| // module.config.php | |
| return array( | |
| 'view_manager' => array( | |
| 'strategies' => array( | |
| 'ViewJsonStrategy', // register JSON renderer strategy | |
| ), | |
| ), | |
| ); |
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
| I have a branch tmp/master that I merge pull requests in before they drive at the upstream master... I want my source to update to that branch... | |
| // from my project composer.json | |
| "repositories": [ | |
| { | |
| "type": "vcs", | |
| "url": "http://github.com/basz/BaconAssetLoader" | |
| }, | |
| { | |
| "type": "vcs", |
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
| command I use: | |
| export PHP_COMMAND=/usr/bin/php && export PHING_HOME=/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/phing/phing && \ | |
| export PHP_CLASSPATH=${PHING_HOME}/classes && export PATH=${PATH}:${PHING_HOME}/bin && \ | |
| /Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/phing/phing/bin/phing \ | |
| -buildfile '/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/bushbaby/zf2-module-phing-service/data/build-example.xml' \ | |
| -logger 'phing.listener.HtmlColorLogger' show-defaults diet | |
| -=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
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
| WORKS | |
| Rattletrap:juffrouwjansen-winkels.nl bas$ ./vendor/bin/doctrine-module orm:schema-tool:create --dump-sql | |
| CREATE TABLE brand (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) DEFAULT NULL, published TINYINT(1) DEFAULT NULL, siteDomain ENUM('hoofddorp', 'studio', 'all') COMMENT '(DC2Type:enumsitedomain)' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE = InnoDB; | |
| ===================== | |
| DOES NOT WORK | |
| Rattletrap:juffrouwjansen-winkels.nl bas$ ./vendor/bin/doctrine-module orm:schema-tool:drop --dump-sql | |
| [Doctrine\DBAL\DBALException] | |
| Unknown database type enum requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it. |
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 | |
| return array( | |
| 'doctrine' => array( | |
| 'connection' => array( | |
| 'orm_default' => array( | |
| 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', | |
| 'params' => array( | |
| 'host' => 'localhost', | |
| 'port' => '3306', |
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
| Rattletrap:juffrouwjansen-winkels.nl bas$ ./vendor/bin/doctrine-module orm:schema-tool:drop --dump-sql --verbose | |
| PHP Fatal error: Uncaught exception 'Doctrine\DBAL\DBALException' with message 'Type to be overwritten Application\DBAL\EnumSiteDomainType does not exist.' in /Users/bas/Documents/Projects/JuffrouwJansen/juffrouwjansen-winkels.nl/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:93 | |
| Stack trace: | |
| #0 /Users/bas/Documents/Projects/JuffrouwJansen/juffrouwjansen-winkels.nl/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php(276): Doctrine\DBAL\DBALException::typeNotFound('Application\DBA...') | |
| #1 /Users/bas/Documents/Projects/JuffrouwJansen/juffrouwjansen-winkels.nl/vendor/doctrine/doctrine-module/src/DoctrineModule/Service/ConnectionFactory.php(62): Doctrine\DBAL\Platforms\AbstractPlatform->registerDoctrineTypeMapping('enumsitedomain', 'Application\DBA...') | |
| #2 [internal function]: DoctrineModule\Service\ConnectionFactory->createService(Object(Zend\ServiceManager\ServiceManager |