Ejemplo n.º 1
0
        /// <summary>
        /// Called by the Core after the library is loaded.
        /// </summary>
        protected override void Loaded(PhpLibraryAttribute assemblyAttribute, LibraryConfigStore configStore)
        {
            base.Loaded(assemblyAttribute, configStore);
            singleton = this;

            PhpFilter.AddSystemFilter(new ZlibFilterFactory());

            StreamWrapper.SystemStreamWrappers.Add(ZlibStreamWrapper.scheme, new ZlibStreamWrapper());

            ZlibConfiguration.RegisterLegacyOptions();
        }
Ejemplo n.º 2
0
 public Registrator()
 {
     PhpFilter.AddSystemFilter(new ZlibFilterFactory());
     StreamWrapper.SystemStreamWrappers.Add(ZlibStreamWrapper.scheme, new ZlibStreamWrapper());
     RegisterLegacyOptions();
 }