Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Adding PSR-0 support to upgrading guide
  • Loading branch information...
commit 1fa9368642ef5362ee0aeb80186dccaccdd71d0e 2 parents fa49803 + 7956a21
Jeremy Bush authored March 27, 2012

Showing 1 changed file with 23 additions and 1 deletion. Show diff stats Hide diff stats

  1. 24  guide/kohana/upgrading.md
24  guide/kohana/upgrading.md
Source Rendered
@@ -55,4 +55,26 @@ Now, there are two options for using the method:
55 55
 
56 56
 which is an alias for:
57 57
 
58  
-    HTTP::check_cache($this->request, $this->response, sha1('my content'));
  58
+    HTTP::check_cache($this->request, $this->response, sha1('my content'));
  59
+    
  60
+## PSR-0 support (file/class naming conventions)
  61
+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) 
  62
+names must match the class name exactly.
  63
+
  64
+Examples:
  65
+
  66
+    Kohana_Core
  67
+
  68
+would be located in
  69
+    
  70
+    classes/Kohana/Core.php
  71
+
  72
+and
  73
+
  74
+    Kohana_HTTP_Header
  75
+
  76
+would be located in 
  77
+
  78
+    classes/Kohana/HTTP/Header.php
  79
+
  80
+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 notes on commit 1fa9368

Please sign in to comment.
Something went wrong with that request. Please try again.