add directive and symfony integration