| 1 | <?php |
||
| 17 | class EncrypterManager implements InjectorInterface, SingletonInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var EncrypterConfig |
||
| 21 | */ |
||
| 22 | protected $config = null; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param EncrypterConfig $config |
||
| 26 | */ |
||
| 27 | public function __construct(EncrypterConfig $config) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Generate new random encryption key (binary format). |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function generateKey() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function createInjection(\ReflectionClass $class, $context = null) |
||
| 49 | } |