Hi,
if I understand correctly you're asking how one would overwrite core
classes without overwriting them, correct?
In App/Config/bootstrap.php is a possibility to use the cake internal
classloader.
I think you could just that and add your own library that overwrites
core behavior (before adding other autoloaders). BTW there is no way to
register() with prepend=true?!?
Another option would be to fork the core, add your own functionality
there (, merge upstream on demand) and
require your fork instead of the cakephp library, e.g. see
http://www.naderman.de/slippy/src/?file=2012-11-22-You-Thought-Composer-Couldnt-Do-That.html#30
Best regards
Jan
On 04.10.2013 09:04, h.kanji wrote:
> Hi Everyone!
>
> Now, I'm examining the CakePHP3.
> There is not App::build method in CakePHP3.
>
> Of cource, I understand PSR-0.
>
> But, I need a way that can be extended without changing the existing
> functionality.
> In CakePHP2 I can use class of their own instead of the classes the
> framework provides.
>
> What can I do to do the same thing in CakePHP3?
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google
> Groups "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cake-php+unsubscribe@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
Monday, October 7, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment