Use beforeFilter() method instead of initialize() method.
Use beforeFilter() method instead of initialize() method.

Component::Initialize has moved to earlier in the bootstrap process in order to match other objects.
See https://github.com/cakephp/cakephp/pull/4823

jmenges/search