Repair routing ignore controller method visit property.

Use is_callable replace method_exists.
Add DI to the container class

Change construct function of core classes.