lib/fiona7/engine.rb in infopark_fiona7-0.71.1.12 vs lib/fiona7/engine.rb in infopark_fiona7-1.1.0.0.0

- old
+ new

@@ -19,52 +19,36 @@ require "fiona7/scrivito_patches/attribute_content" require "fiona7/scrivito_patches/attribute_serializer" require "fiona7/scrivito_patches/basic_obj" require "fiona7/scrivito_patches/basic_widget" require "fiona7/scrivito_patches/binary" -require "fiona7/scrivito_patches/cms_backend" require "fiona7/scrivito_patches/child_list_tag" +require "fiona7/scrivito_patches/cms_backend" require "fiona7/scrivito_patches/cms_field_tag" -require "fiona7/scrivito_patches/controller_actions" # different load order !! #require "fiona7/scrivito_patches/cms_dispatch_controller" require "fiona7/scrivito_patches/cms_rest_api" require "fiona7/scrivito_patches/cms_routing" require "fiona7/scrivito_patches/layout_tags" +require "fiona7/scrivito_patches/log_subscriber" require "fiona7/scrivito_patches/link_parser" require "fiona7/scrivito_patches/migrator" -require "fiona7/scrivito_patches/obj_data_from_rest" require "fiona7/scrivito_patches/page_config" +require "fiona7/scrivito_patches/preset_routes" +require "fiona7/scrivito_patches/routing_extensions" require "fiona7/scrivito_patches/type_computer" require "fiona7/scrivito_patches/workspace" require "fiona7/fiona_connector_patches/cms_accessible" require "fiona7/middleware/table_switching_middleware" require "fiona7/middleware/server_detection_middleware" -module Scrivito - class LogSubscriber < ActiveSupport::LogSubscriber - def backend_request(event) - self.class.runtime += event.duration - return unless logger.debug? +# components +require "fiona7/recursive_object_finder" +require "fiona7/complex_object" - duration = '(%.1fms)' % [event.duration] - - param = event.payload[:params] - param_text = " #{param}" if param - - verb_text = event.payload[:verb].upcase - path_text = event.payload[:path] - - debug " Fiona7 #{verb_text} #{path_text}#{param_text} #{duration}" - end - end -end - - -require "fiona7/routers/content_service" require "fiona7/routers/rest_api" require 'fiona7/scrivito_user' require 'fiona7/type_synchronizer' @@ -121,9 +105,13 @@ RailsConnector::Configuration.instance_name = config.instance end end class Engine < ::Rails::Engine + + config.after_initialize do + puts "ENGINE AFTER INITIALIZE" + end config.to_prepare do # TODO: do some smart optimizations initializer = Fiona7::Initializer.new initializer.initialize_system