[ticket/12581] Define the proxy_factory as optionnal

PHPBB3-12581