Browse Source

Documentation corrections for Session.

mark_story 12 years ago
parent
commit
959189bb3d
2 changed files with 5 additions and 5 deletions
  1. 1 1
      src/Network/Request.php
  2. 4 4
      src/Network/Session.php

+ 1 - 1
src/Network/Request.php

@@ -440,7 +440,7 @@ class Request implements \ArrayAccess {
 /**
  * Returns the instance of the Session object for this request
  *
- * If a session obkect is passed as first argument it will be set as
+ * If a session object is passed as first argument it will be set as
  * the session to use for this request
  *
  * @param \Cake\Network\Session $session the session object to use

+ 4 - 4
src/Network/Session.php

@@ -22,11 +22,11 @@ use SessionHandlerInterface;
 
 /**
  * This class is a wrapper for the native PHP session functions. It provides
- * with several defaults for the most common use cases for utilizing the session
+ * several defaults for the most common session configuration
  * via external handlers and helps with using session in cli without any warnings.
  *
- * Sessions can be created out of defaults using `Session::create()` or you can get
- * an instance of a new session by just instantiating this class and passing the full
+ * Sessions can be created from the defaults using `Session::create()` or you can get
+ * an instance of a new session by just instantiating this class and passing the complete
  * options you want to use.
  *
  * When specific options are omitted, this class will take its defaults from the configuration
@@ -242,7 +242,7 @@ class Session {
 		$handler = new $class($options);
 		if (!($handler instanceof SessionHandlerInterface)) {
 			throw new \InvalidArgumentException(
-				'Chosen SessionHandler does not implement SessionHandlerInterface, it cannot be used with an engine key.'
+				'The chosen SessionHandler does not implement SessionHandlerInterface, it cannot be used as an engine.'
 			);
 		}