Hi Tristan,
This is a problem with the way symfony tasks works for now.
I plan to
abstract the autoloading to be able to use it in tasks. This
is the same
problem we have with the latest beta with the
propel-generate-crud task.
I think I will add an __autoload() function in the symfony
command line
(I did the same for unit testing - see
test/unit/boostrap.php).
Fabien
Tristan Rivoallan wrote:
> Hello everyone,
>
> i'm currently writing tasks for a plugin and ran into
the following
> problem:
>
> i created some custom configuration handlers and need
to access them in
> a task. But when i run the task i get a
"sfConfigCache class not found"
> error.
>
> how can i make this class available to tasks ?
>
> the faulty code is :
>
> require_once
>
sfConfigCache::getInstance()->checkConfig('config/etal/da
tasources.yml');
>
> thanks in advance,
>
> tristan
>
--
To unsubscribe, e-mail: dev-unsubscribe symfony-project.com
For additional commands, e-mail: dev-help symfony-project.com
|