php - Override one private property in one Swift Mailer class (Symfony2) -


i writing symfony2 bundle requires swift mailer. use composer require swift mailer , composer used install bundle.

i want change value of 1 private property in 1 swift mailer class.

of course change property in php code, want better solution ensures when bundle installed (composer) there no other manual work involved (i.e. manually changing property in php code).

i don't think swift mailer symfony bundle, don't think can use compiler class.

i know can configure composer settings, don't think solution. issue of course can't change of swift mailer code (hence compiler pass great).

i don't think possible, surely able without manual work every time bundle installed?

you can't, , behavior of php in general.

a private property means it's not extension point provided swiftmailer.

what desired use case? if use case valid one, , there no other usable extension point that, i'd suggest contribute swiftmailer propose it. (the easiest contribution make property protected)


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -