fix BEAR.Resource adapter
fix lib_dir
update composer.json
fix no AppDirInject
fix twig adapter instance