externalid = $_user; $user->permissions = ['PUBLISH']; $user->session = $_session; return $user; } } namespace Federator; /** * Function to initialize plugin * * @param \Federator\Main $main main instance * @return void */ function dummy_load($main) { $dummy = new Connector\DummyConnector(); $main->setConnector($dummy); }