the migration guide states the new params of components

class PrgComponent extends Component {
    function __construct(ComponentCollection $collection, $settings =
array()) {
        parent::__construct($collection, $settings);
    }
}

but if you have old components you used in shells, etc
you got (just an example) in this shell:

$prg = new PrgComponent($controllerOrWhatever);

how could one update this to 2.0?
maybe
$prg = new PrgComponent(new ComponentCollection);
?

in the long run this ought to be a Lib of course.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to