In my module, I'm using the following to get the current version being installed:
public function preflight($type, $parent)
{
$this->release = $parent->get('manifest')->version;
}
which was working fine in J3.x, however in J4 it results in:
Fatal error: Call to undefined method Joomla\CMS\Installer\Adapter\ModuleAdapter::get()
Labels |
Added:
?
|
Yup, that seemed to work.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-06-01 15:55:19 |
Closed_By | ⇒ | C-Lodder |
Can you please test if it works on J3 as well when directing accessing the property. Otherwise we need to port that back into J3.
Known B/C break, the install adapters no longer extend JObject. Use
$parent->manifest->version instead on 4.0 (I don't remember if that
property is declared in 3.x off hand).
On Thu, Jun 1, 2017 at 5:49 PM Lodder notifications@github.com wrote:
--