Permalink
Browse files

Merge pull request #234 from mintbridge/3.3/feature/PSR-0-guide

Adding PSR-0 support to upgrading guide
  • Loading branch information...
2 parents fa49803 + 7956a21 commit 1fa9368642ef5362ee0aeb80186dccaccdd71d0e @zombor zombor committed Mar 27, 2012
Showing with 23 additions and 1 deletion.
  1. +23 −1 guide/kohana/upgrading.md
@@ -55,4 +55,26 @@ Now, there are two options for using the method:
which is an alias for:
- HTTP::check_cache($this->request, $this->response, sha1('my content'));
+ HTTP::check_cache($this->request, $this->response, sha1('my content'));
+
+## PSR-0 support (file/class naming conventions)
+With the introduction of [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) support, the autoloading of classes is case sensitive. Now, the file (and folder)
+names must match the class name exactly.
+
+Examples:
+
+ Kohana_Core
+
+would be located in
+
+ classes/Kohana/Core.php
+
+and
+
+ Kohana_HTTP_Header
+
+would be located in
+
+ classes/Kohana/HTTP/Header.php
+
+This also affects dynamically named classes such as drivers and orms, so for example in the database config using `'mysql'` as the type instead of `'MySQL'` would throw a class not found error.

0 comments on commit 1fa9368

Please sign in to comment.