withAssertion(new PharExtensionInterceptor()) ); } catch (\LogicException $e) { // Continue if the PharStreamWrapperManager is already initialized. // For example, this occurs following a drupal_static_reset(), such // as during tests. }; // To prevent file_stream_wrapper_valid_scheme() treating "phar" as a valid // scheme, this is registered with PHP only, not with hook_stream_wrappers() // or the internal storage of file_get_stream_wrappers(). stream_wrapper_register('phar', '\\TYPO3\\PharStreamWrapper\\PharStreamWrapper'); }