"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mrbs-1.9.4/web/lib/MRBS/Session/SessionFactory.php" between
mrbs-1.9.4.tar.gz and mrbs-1.10.0.tar.gz

About: MRBS is a web application for booking meeting rooms or other resources (using PHP and MySQL/pgsql).

SessionFactory.php  (mrbs-1.9.4):SessionFactory.php  (mrbs-1.10.0)
<?php <?php
namespace MRBS\Session; namespace MRBS\Session;
class SessionFactory class SessionFactory
{ {
public static function create($type) public static function create(string $type)
{ {
// Transform the session type from lowercase_separated to LowercaseSeparated // Transform the session type from lowercase_separated to LowercaseSeparated
$parts = explode('_', $type); $parts = explode('_', $type);
$parts = array_map('ucfirst', $parts); $parts = array_map('ucfirst', $parts);
$class = __NAMESPACE__ . "\\Session" . implode('', $parts); $class = __NAMESPACE__ . "\\Session" . implode('', $parts);
return new $class; return new $class;
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)