accommodate (oneself) to (something)
To assimilate or adjust to a new environment or a different set of rules or expectations. The new student struggled to accommodate himself to the new school and often got in trouble as a result. If you're going to live with us, you need to accommodate yourself to our rules.
accommodate oneself to something
to adapt oneself to something, such as someone else's needs or a new environment. Please try to accommodate yourself to our routine.