barryhennessy / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

don't use require_once #142

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
require_once is brittle and non-performant even with an opcode cache.

You should not load dependencies in the files, but instead make the classes 
loadable via autoload.  For those users who really want performance, it is a 
simple task to combine all the files into a single file, and can be done in a 
build script.

For everyone else, it would be great to simply autoload the classes.

Original issue reported on code.google.com by g...@chiaraquartet.net on 18 Jun 2012 at 9:09

GoogleCodeExporter commented 8 years ago

Original comment by ianbar...@google.com on 22 Mar 2013 at 2:18