$di->set('crypt', function () use ($config) { $crypt = new \Phalcon\Crypt(); $crypt->setMode(MCRYPT_MODE_CBC); $crypt->setCipher(MCRYPT_RIJNDAEL_128); $crypt->setKey($config->application->cryptSalt); return $crypt; }, true);
Can you suggest me why I am getting empty while I access $this->crypt