Import doctrine orm in controller class

How to import doctrine orm object in Slim’s controller class? Any sample please?

You could use the container object to fetch the doctrine object (not recommended because it’s an anti-pattern) or better use PHP-DI to inject the required services.

http://php-di.org/doc/frameworks/slim.html
http://php-di.org/doc/autowiring.html