This is the thing... I have a simple class with some functions but I need to change the way that I call those functions.
Originally the class look like this
<?php
class Bcrypt {
const DEFAULT_WORK_FACTOR = 8;
public static function hash($password, $work_factor = 0) { ... }
public static function check($password, $stored_hash, $legacy_handler = NULL) { ... }
}?>
Now I need change the way that model call this class
Originally the model look like this
Bcrypt::hash($data['password'])
What I need to do is change this call to be like this:
$this->bcrypt->hash($data['password'])
I know maybe this is a simple question but I need to clarify some concepts...