license import { Injector } from '@angular/core' ; docs-private export class PortalInjector implements Injector { constructor ( private _parentInjector , private _customTokens ) { } get ( token , notFoundValue ? ) { const value = this . _customTokens . get ( token ) ; if ( typeof value !== 'undefined' ) { return value ; } return this . _parentInjector . get < any > ( token , notFoundValue ) ; } }