Should this be injected into the constructor instead of $app itself?