update CopyController to work with psr-4