Unless otherwise provided by law, no street railroad company or any other corporation, except railroad companies, pipeline companies, and public works companies shall, without the consent of the owner, construct any railway, tramway, canal, tunnel, underground passage, telegraph or telephone line, aqueduct, pipeline, or any other line or works through any yard or curtilage of a dwelling house, garden, stable lot, or barn.
Ala. Code § 10A-21-2.06 (1975)