Why cake.php and index.php use require instead of require_once?

Out of curiosity, I’d like to ask why files like bin/cake.php or webroot/index.php use ‘require’ instead of ‘require_once’?

require_once is used when you know that you may be reaching that point in the code more than once, but including the file more than once will cause issues. For example, if the file defines functions. That’s not the case here.

So this is a very conscious decision. I am so used to using require_once everywhere that it kind of surprised me, hence the question. Thanks for the reply :slight_smile: