<div dir="ltr">I'm having all sorts of visibility problems.<div>I have this:</div><div><br></div><div>  app/system/...</div><div>  app/system/widgets/...</div><div><br></div><div>The 'system'/manager should be able to access all the widgets internals, but things outside the system shouldn't be able to touch the internals.</div>
<div>This is what 'package' is supposed to be for, except 'package' in widgets only allows access to other widgets, 'system' level modules have no access...</div><div><br></div><div>Is there a workaround for this case? I'm not sure what to do.</div>
<div><br></div><div>I guess the trouble is that 'package' specifies sibling modules and below, but nothing above... but this isn't always the module structure.</div><div>I'm thinking 'package' needs to know the top level that can access internals. Perhaps this would solve my problem elegantly:</div>
<div><br></div><div>  module app.system.widgets.widget;  // <- module is beneath 'widgets'</div><div><br></div><div>  package(app.system):</div><div>  ...  internal stuff that 'app.system' (ie, the 'package') and below can access ...</div>
<div><br></div><div>Or is there an existing solution that I can't find?</div></div>