Hi, my (shared) hosting does not have PDO support in the CLI PHP (they
have it using http) so i cant run the tasks that need pdo from it
(like doctrine:build-all-reload --env=dev --no-confirmation).
We use the server to have a (private) snapshot of our svn repository,
after each commit a hook exports a fresh copy of the repository to be
tested.
I would like to be able to run the doctrine:build-all-reload task in
the same post commit hook so that the DB gets initialized as well.

my hoster said that there is no support for PDO from the CLI so I
thought to write a php script to execute the task. Looking at some
tasks I came up with something like this:

<?php

ini_set('include_path', ini_get('include_path').':/home/fotolion/
nosoapnobubbles/dev/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/
lib/task/');

require_once('sfDoctrineBuildAllReloadTask.class.php');

$task = new sfDoctrineBuildAllReloadTask($this->dispatcher, $this-
>formatter);
$ret = $task->run(array(), array('--env=dev', '--no-confirmation'));

?>

but I have a problem, what 2 parameters do I have to pass to new
sfDoctrineBuildAllReloadTask($this->dispatcher, $this->formatter)?

I would then place the file in the web folder (like a controller, the
web folder is password protected) and execute it after every ceckout.

can anyone help me?

Thanks Marco Bernasocchi


--~--~---------~--~----~------------~-------~--~----~
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