Innecessary Overrides In Cwebapplication?

Hi all.

I’ve been inspecting the code a bit.

In CWebApplication we can read:




public function getAuthManager()

{

   return $this->getComponent('authManager');

}


/**

 * @return CAssetManager the asset manager component

 */

public function getAssetManager()

{

    return $this->getComponent('assetManager');

}



I wonder why is this necessary when CWebApplication extends CModule and the latter implements __get and __set in a way that does the same.

Am I wrong?

Thank you.

I think its just purely for speed, since magic methods are 2 to 3 times slower then normal object methods

Makes sense.

Thanks.