Override Core Page in Package

Permalink
I'm looking for a way to override / extend the Page class in a package. I know we can change the app.php, but I'd like to do it from a package.

Is that even possible in C5742? I've looked through the forums and Google, but couldn't find an answer.

Something like this in the Package on_start doesn't seem to work:
\Core::bind('\Concrete\Core\Page\Page', function() {
  exit("test");
});


Ideas?

A3020
 
ob7dev replied on at Permalink Reply
ob7dev
Ever figure this out?
JohntheFish replied on at Permalink Reply
JohntheFish
@mainio posted a trick to override and inherit from anything. Just need to search back through either forum posts or howtos (not sure where he posted it).
ob7dev replied on at Permalink Reply
ob7dev
Would it happen to be this post?
http://www.concrete5.org/community/forums/customizing_c5/extending-...
Because thats for 5.6
JohntheFish replied on at Permalink Reply
JohntheFish
No, the post I am thinking of was very 5.7 specific.
ob7dev replied on at Permalink Reply
ob7dev
Found some helpful stuff on github:
https://github.com/concrete5/concrete5/issues/251...
ob7dev replied on at Permalink Reply
ob7dev
Ever figure this out?