Last active
          December 11, 2015 07:20 
        
      - 
      
 - 
        
Save YuzuruSano/f74ade8834c50a751023 to your computer and use it in GitHub Desktop.  
    concrete5 5.7〜 core class override sample
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| use Symfony\Component\ClassLoader\MapClassLoader; | |
| defined('C5_EXECUTE') or die('Access Denied.'); | |
| /** | |
| * ---------------------------------------------------------------------------- | |
| * Load all composer autoload items. | |
| * ---------------------------------------------------------------------------- | |
| */ | |
| if (!@include(DIR_BASE_CORE . '/' . DIRNAME_VENDOR . '/autoload.php')) { | |
| die('Third party libraries not installed. Make sure that composer has required libraries in the concrete/ directory.'); | |
| } | |
| $mapping = array( | |
| //変更対象ファイルはapplication/src/Core内に構造を保ったままコピーする | |
| 'Concrete\\Core\\Block\\View\\BlockView' => DIR_APPLICATION . '/src/Core/Block/View/BlockView.php' | |
| ); | |
| $loader = new MapClassLoader($mapping); | |
| $loader->register(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment