Skip to content

Instantly share code, notes, and snippets.

View MihailoJoksimovic's full-sized avatar

Mihailo Joksimovic MihailoJoksimovic

View GitHub Profile
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<imports>
<import resource="services.xml" />
</imports>
mixa@mixa-blackbox:~$ cat /etc/apache2/sites-available/c.com
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName c.com
ServerAlias www.c.com
ServerAlias live.c.com
DocumentRoot /home/mixa/projects/chess/htdocs
php_flag display_errors on
php_flag short_open_tag on
dig@dev:/data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk$ php mixa_test.php
<?php
return array (
'factories' =>
array (
'Test' => 'function ($serviceManager) {
$form = new SomeModule\\Form\\User();
// Retrieve a dependency from the service manager and inject it!
$form->setInputFilter($serviceManager->get(\'UserInputFilter\'));
<service_manager>
<composites>
<Kurac>
<path>DIG\Libs\Kurac</path>
<params>
<param>5</params>
<params>DbAdapter</params>
</params>
</Kurac>
</composites>
Fatal error: Call to undefined method Webedi\BusinessLogic\CatalogPartner::loadUserPartners() in /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/vendor/Webedi/Webedi/BusinessLogic/CatalogPartner.php on line 103
Call Stack:
0.0000 332052 1. {main}() /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/frontend/route_request.php:0
0.7704 1479048 2. Webedi\Api\Base->handleRequest() /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/frontend/route_request.php:31
0.7704 1479152 3. Webedi\Api\CatalogPartner->actionLoadLoggedUserPartnerContacts() /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/vendor/Webedi/Webedi/Api/Base.php:59
0.7714 1495416 4. Webedi\BusinessLogic\CatalogPartner->loadUserPartnersContacts() /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/vendor/Webedi/Webedi/Api/CatalogPartner.php:38
Warning: mkdir(): No such fil

4.4. Method Arguments

In the argument list, there MUST NOT be a space before each comma, and there MUST be one space after each comma.

Method arguments with default values MUST go at the end of the argument list.

php
On Tue, Feb 19, 2013 at 3:37 AM, roberto blanko <robertoblanko@gmail.com> wrote:
> one problem drives me nuts, since I started working with ZF2 (never worked
> with Version 1):
>
> I'm in need of the service manager all the time. E.g. to access my config
> in config/autoload/local.php via $sm->get('Config'). I need the service
> manager everywhere. Controllers, models, you name it. And I don’t want to
> pass it around by hand, which would make everything ugly.
>
> Now I’ve started to implement ServiceLocatorAwareInterface in most classes.
getPotentialAnswerDoctypes: function(buyerId, sellerId, document) {
var doctypesFormatted = new Array();
if (!document.get('answered') || document.get('another_answer_allowed')) {
var workflowId = this.getWorkflowForBuyerAndSeller(buyerId, sellerId);
function copyConfig($clientName, $filename)
{
$defaultConfig = CLIENT_ROOT . DIRECTORY_SEPARATOR . $clientName . RELATIVE_CONFIG_DIR;
$configFilename = $defaultConfig . DIRECTORY_SEPARATOR . $filename . '-config.xml';
$newFilename = $defaultConfig . DIRECTORY_SEPARATOR . 'client.xml';
checkNewFilename($newFilename);
copy($configFilename, $newFilename);
}
cha@catdevng:/data1/www/catdevng.office.dig/ssl-htdocs/catalog/cha/eprocure (hotfix/2.69.2.1)$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.hotfix/2.69.2.1.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.
If you often merge with the same branch, you may want to
use something like the following in your configuration file: