خرید بک لینک

Vote count: 0

We are trying to implement a module in our app that requires knowledge of whether or not a specific class was updated. Think about a class that defines a migration logic and we need to know if one of these migrations been updated and reapply them when needed.

There are couple of potential options:

  1. Track if a file, where migrations defined, was changed.
  2. Track if the class itself was changed (if possible).

For #1, my question is how to the the file where a class was defined. We need that, because we already have classes loaded. For #2 - is it even possible. If yes, how?

Or, there might be completely different approach. Any through helpful.

Thanks,

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 28 ارديبهشت 1395 ساعت: 11:06

صفحه بندی