You have to define another environment ('batch' or 'test' or something
like that) for this purpose.

In this new environment you can define your request class  in the
factories.yml of the frontend app.

'dev' is your normal environment for web development.

- Frank


> I've created a new Batch script, and it looks like this:
>
>
> define('SF_ROOT_DIR',    realpath(dirname(__file__).'/..'));
> define('SF_APP',         'frontend');
> define('SF_ENVIRONMENT', 'dev');
> define('SF_DEBUG',       1);
>
> require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
>
> $r = sfContext::getInstance()->getRequest();
>
> echo get_class($r);
>
>
>
>
> The output, is 'sfWebRequest'! Surely that's wrong?
>
>
> --
> Ian P. Christian ~ http://pookey.co.uk
>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to