how to handle objectmanager

English! place to talk about development, programming and coding
Post Reply
nicmic
Znuny newbie
Posts: 7
Joined: 31 Jan 2015, 15:23
Znuny Version: 4.0.5

how to handle objectmanager

Post by nicmic »

Some questions due handling of the object manager. Due migrating from an addon from OTRS 3.x.x. to 4.x.x framework i setup some stuff aka:

Code: Select all

package Kernel::Output....

use strict;
use warnings;

our @ObjectDependencies = (
    'Kernel::System::Web::Request',
    'Kernel::Output::HTML::Layout',
    'Kernel::Config',
)

use Kernel::System::ObjectManager;
But i have not opened a new instance for the object manager.

Nevertheless the following code works:

Code: Select all

$Kernel::OM->Get(.....
Why does access to objectmanager working here also if i have not opened a new instance of the OM?
Post Reply