8.3.0 $app->make doesn't work on captcha library

Permalink 0 0 Browser Info Environment
$c = $this->app->make(\Concrete\Core\Captcha\Library::class);
$this->set('captcha_lib', $c->getSystemCaptchaLibraryHandle());

This returns an empty string.

Only this works:
$c = \Concrete\Core\Captcha\Library::getActive();
$this->set('captcha_lib', $c->getSystemCaptchaLibraryHandle());


Status: New
linuxoid
mlocati replied on at Permalink Reply
mlocati
You can create the captcha interface:
$c = $this->app->make(\Concrete\Core\Captcha\CaptchaInterface::class);

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.0
Version Installed - 8.3.0
Database Version - 20171129190607

# concrete5 Packages
Community Store (1.3.1), ExchangeCore reCAPTCHA (1.1.1)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
apache2handler

# PHP Version
7.0.7

# PHP Extensions
apache2handler, bz2, Core, ctype, curl, date, dom, fileinfo, filter, gd, gettext, hash, iconv, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Reflection, session, SimpleXML, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0