__get() public method

Magic method for lazy loading $components.
public __get ( string $name ) : mixed
$name string Name of component to get.
return mixed A Component object or null.
 /**
  * Magic accessor for backward compatibility for property `$sessionKey`.
  *
  * @param string $name Property name
  * @return mixed
  */
 public function __get($name)
 {
     if ($name === 'sessionKey') {
         return $this->storage()->config('key');
     }
     return parent::__get($name);
 }